feat: optimise get server ip (#20)
* feat: optimise get server ip * feat: test ServerIPpull/24/head
parent
7caf5a0df9
commit
c8155553b8
@ -0,0 +1,12 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"net"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestServerIP(t *testing.T) {
|
||||
if net.ParseIP(ServerIP) == nil {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue