1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 14:05:26 -05:00

protobuf for stream settings

This commit is contained in:
Darien Raymond
2016-10-02 23:43:58 +02:00
parent 5ec948f690
commit 1d13f47f9c
59 changed files with 1243 additions and 323 deletions

View File

@@ -68,7 +68,7 @@ func NewNetworkList(networks collect.StringList) *NetworkList {
}
// HashNetwork returns true if the given network is in this NetworkList.
func (this *NetworkList) HasNetwork(network Network) bool {
func (this NetworkList) HasNetwork(network Network) bool {
for _, value := range this.Network {
if string(value) == string(network) {
return true
@@ -76,3 +76,7 @@ func (this *NetworkList) HasNetwork(network Network) bool {
}
return false
}
func (this NetworkList) Get(idx int) Network {
return this.Network[idx]
}