mirror of
https://github.com/v2ray/v2ray-core.git
synced 2024-04-21 12:31:52 +00:00
Load Websocket Streamtype from json
This commit is contained in:
@@ -50,6 +50,9 @@ func (this *StreamSettings) UnmarshalJSON(data []byte) error {
|
||||
if jsonConfig.Network.HasNetwork(v2net.KCPNetwork) {
|
||||
this.Type |= StreamConnectionTypeKCP
|
||||
}
|
||||
if jsonConfig.Network.HasNetwork(v2net.WSNetwork) {
|
||||
this.Type |= StreamConnectionTypeWebSocket
|
||||
}
|
||||
if jsonConfig.Network.HasNetwork(v2net.TCPNetwork) {
|
||||
this.Type |= StreamConnectionTypeTCP
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user