Load Websocket Streamtype from json

pull/238/head
Shelikhoo 8 years ago
parent 0d60d2449a
commit 20f16309e6
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

@ -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
}

Loading…
Cancel
Save