You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hae large users in server with ccd like this
user 1 -> 10.10.0.14
user n -> push 10.10.0.169 10.10.0.170
user m -> 10.10.0.173
user k -> 10.10.0.177
if I change address for user 1 - 10.10.0.14 to 10.10.0.17 i get an error - ClientAddress "10.10.0.17" already assigned to another user!
func checkStaticAddressIsFree(staticAddress string, username string) bool {
o := runBash(fmt.Sprintf("**grep -rl %s %s | grep -vx %s/%s | wc -l", staticAddress, ccdDir, ccdDir, username))
if strings.TrimSpace(o) == "0" {
return true
}
return false
}
RETURN = 3 and give error, BUT the real address 10.10.0.17!!! Need help with grep!
The text was updated successfully, but these errors were encountered:
I hae large users in server with ccd like this
user 1 -> 10.10.0.14
user n -> push 10.10.0.169 10.10.0.170
user m -> 10.10.0.173
user k -> 10.10.0.177
if I change address for user 1 - 10.10.0.14 to 10.10.0.17 i get an error - ClientAddress "10.10.0.17" already assigned to another user!
func checkStaticAddressIsFree(staticAddress string, username string) bool {
o := runBash(fmt.Sprintf("**grep -rl %s %s | grep -vx %s/%s | wc -l", staticAddress, ccdDir, ccdDir, username))
}
RETURN = 3 and give error, BUT the real address 10.10.0.17!!! Need help with grep!
The text was updated successfully, but these errors were encountered: