瀏覽代碼

v2.1 test

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