(ipStr string)
| 57 | } |
| 58 | |
| 59 | func validateIPString(ipStr string) (net.IP, bool, error) { |
| 60 | ip := net.ParseIP(ipStr) |
| 61 | if ip == nil { |
| 62 | return nil, false, ErrInvalidNAT1To1IPMapping |
| 63 | } |
| 64 | |
| 65 | return ip, (ip.To4() != nil), nil |
| 66 | } |
| 67 | |
| 68 | // ipMapping holds the mapping of local and external IP address |
| 69 | // |
no outgoing calls
searching dependent graphs…