small bug fixes

This commit is contained in:
0xdcarns
2022-04-21 10:56:10 -04:00
parent 3298a074bb
commit 3ca9843328
2 changed files with 7 additions and 1 deletions

View File

@@ -153,6 +153,12 @@ func getExtClientConf(w http.ResponseWriter, r *http.Request) {
}
gwendpoint := gwnode.Endpoint + ":" + strconv.Itoa(int(gwnode.ListenPort))
newAllowedIPs := network.AddressRange
if newAllowedIPs != "" {
addrString += ","
}
if network.AddressRange6 != "" {
newAllowedIPs += network.AddressRange6
}
if egressGatewayRanges, err := logic.GetEgressRangesOnNetwork(&client); err == nil {
for _, egressGatewayRange := range egressGatewayRanges {
newAllowedIPs += "," + egressGatewayRange