1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00
v2fly/proxy/http/config.go
2016-04-25 15:30:28 +02:00

26 lines
387 B
Go

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