Initial import
This commit is contained in:
11
proxy/match/util.go
Normal file
11
proxy/match/util.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package match
|
||||
|
||||
import "net"
|
||||
|
||||
func onlyHost(name string) string {
|
||||
host, _, err := net.SplitHostPort(name)
|
||||
if err != nil {
|
||||
return name
|
||||
}
|
||||
return host
|
||||
}
|
Reference in New Issue
Block a user