Explorar o código

new allowed ips fix

0xdcarns %!s(int64=3) %!d(string=hai) anos
pai
achega
8b84692455
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))
 	gwendpoint := gwnode.Endpoint + ":" + strconv.Itoa(int(gwnode.ListenPort))
 	newAllowedIPs := network.AddressRange
 	newAllowedIPs := network.AddressRange
 	if newAllowedIPs != "" {
 	if newAllowedIPs != "" {
-		addrString += ","
+		newAllowedIPs += ","
 	}
 	}
 	if network.AddressRange6 != "" {
 	if network.AddressRange6 != "" {
 		newAllowedIPs += network.AddressRange6
 		newAllowedIPs += network.AddressRange6