瀏覽代碼

new allowed ips fix

0xdcarns 3 年之前
父節點
當前提交
8b84692455
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/ext_client.go

+ 1 - 1
controllers/ext_client.go

@@ -154,7 +154,7 @@ func getExtClientConf(w http.ResponseWriter, r *http.Request) {
 	gwendpoint := gwnode.Endpoint + ":" + strconv.Itoa(int(gwnode.ListenPort))
 	newAllowedIPs := network.AddressRange
 	if newAllowedIPs != "" {
-		addrString += ","
+		newAllowedIPs += ","
 	}
 	if network.AddressRange6 != "" {
 		newAllowedIPs += network.AddressRange6