MCPcopy
hub / github.com/ph4ntonn/Stowaway / CheckIfIP4

Function CheckIfIP4

utils/utils.go:125–135  ·  view source on GitHub ↗
(ip string)

Source from the content-addressed store, hash-verified

123}
124
125func CheckIfIP4(ip string) bool {
126 for i := 0; i < len(ip); i++ {
127 switch ip[i] {
128 case '.':
129 return true
130 case ':':
131 return false
132 }
133 }
134 return false
135}
136
137func CheckRange(nodes []int) {
138 for m := len(nodes) - 1; m > 0; m-- {

Callers 1

DialMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected