v2ray-core/proxy/http/config.go

19 lines
288 B
Go
Raw Normal View History

2015-12-14 16:26:29 +00:00
package http
2016-01-26 10:28:09 +00:00
import (
v2net "github.com/v2ray/v2ray-core/common/net"
)
type Config struct {
2016-01-26 10:28:09 +00:00
OwnHosts []v2net.Address
}
func (this *Config) IsOwnHost(host v2net.Address) bool {
for _, ownHost := range this.OwnHosts {
if ownHost.Equals(host) {
return true
}
}
return false
2015-12-14 16:26:29 +00:00
}