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:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user