mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-23 16:37:34 +00:00
Do not print stuff in the library
This commit is contained in:
parent
5faa6cf59a
commit
33bee1df05
6
utils.go
6
utils.go
@ -105,8 +105,8 @@ func getRandomIP() (*net.IP, error) {
|
||||
ipo, ipnet, err := net.ParseCIDR("100.64.0.0/10")
|
||||
if err == nil {
|
||||
ip := ipo.To4()
|
||||
fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet)
|
||||
fmt.Println("Final address is ", ip)
|
||||
// fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet)
|
||||
// fmt.Println("Final address is ", ip)
|
||||
// fmt.Println("Broadcast address is ", ipb)
|
||||
// fmt.Println("Network address is ", ipn)
|
||||
r := mathrand.Uint32()
|
||||
@ -119,7 +119,7 @@ func getRandomIP() (*net.IP, error) {
|
||||
ip[i] = ip[i] + (v &^ ipnet.Mask[i])
|
||||
// fmt.Println("IP After: ", ip[i])
|
||||
}
|
||||
fmt.Println("FINAL IP: ", ip.String())
|
||||
// fmt.Println("FINAL IP: ", ip.String())
|
||||
return &ip, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user