lijian преди 1 година
родител
ревизия
8e87e674fe
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      services/httpaccess/actions.go

+ 4 - 0
services/httpaccess/actions.go

@@ -117,6 +117,10 @@ func AuthDevice(args DeviceAuthArgs, r render.Render) {
 		hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "tcphost")
 	case "coap":
 		hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "udphost")
+	case "mqttX": // TODO: 增加配置文件支持
+		hosts = []string{
+			"114.115.251.196:1883",
+		}
 	default:
 		err = errors.New("unsuported protocol: " + args.Protocol)
 	}