(ipList string)
| 71 | } |
| 72 | |
| 73 | func extractFirstMatchFromIPList(ipList string) string { |
| 74 | if ipList == "" { |
| 75 | return "" |
| 76 | } |
| 77 | s := strings.Index(ipList, ",") |
| 78 | if s == -1 { |
| 79 | s = len(ipList) |
| 80 | } |
| 81 | |
| 82 | return ipList[:s] |
| 83 | } |
| 84 | |
| 85 | func parseForwardedHeader(fwd string) string { |
| 86 | splits := strings.Split(fwd, ";") |
no outgoing calls
no test coverage detected