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)
 	}