mirror of https://github.com/v2ray/v2ray-core
WS Conf structure
parent
8c96b1961b
commit
8c4a6d94f9
|
@ -3,12 +3,14 @@ package transport
|
||||||
import (
|
import (
|
||||||
"github.com/v2ray/v2ray-core/transport/internet/kcp"
|
"github.com/v2ray/v2ray-core/transport/internet/kcp"
|
||||||
"github.com/v2ray/v2ray-core/transport/internet/tcp"
|
"github.com/v2ray/v2ray-core/transport/internet/tcp"
|
||||||
|
"github.com/v2ray/v2ray-core/transport/internet/ws"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config for V2Ray transport layer.
|
// Config for V2Ray transport layer.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
tcpConfig *tcp.Config
|
tcpConfig *tcp.Config
|
||||||
kcpConfig kcp.Config
|
kcpConfig kcp.Config
|
||||||
|
wsConfig *ws.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply applies this Config.
|
// Apply applies this Config.
|
||||||
|
@ -17,5 +19,8 @@ func (this *Config) Apply() error {
|
||||||
this.tcpConfig.Apply()
|
this.tcpConfig.Apply()
|
||||||
}
|
}
|
||||||
this.kcpConfig.Apply()
|
this.kcpConfig.Apply()
|
||||||
|
if this.wsConfig != nil {
|
||||||
|
this.wsConfig.Apply()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue