You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/proxy/http/config.go

19 lines
288 B

package http
import (
v2net "github.com/v2ray/v2ray-core/common/net"
)
type Config struct {
OwnHosts []v2net.Address
}
func (this *Config) IsOwnHost(host v2net.Address) bool {
for _, ownHost := range this.OwnHosts {
if ownHost.Equals(host) {
return true
}
}
return false
}