mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-14 03:23:58 +00:00
network -> method
This commit is contained in:
@@ -44,6 +44,7 @@ func (p TransportProtocol) Build() (string, error) {
|
||||
type StreamConfig struct {
|
||||
Address *Address `json:"address"`
|
||||
Port uint16 `json:"port"`
|
||||
Method *TransportProtocol `json:"method"`
|
||||
Network *TransportProtocol `json:"network"`
|
||||
Security string `json:"security"`
|
||||
FinalMask *FinalMask `json:"finalmask"`
|
||||
@@ -70,6 +71,9 @@ func (c *StreamConfig) Build() (*internet.StreamConfig, error) {
|
||||
if c.Address != nil {
|
||||
config.Address = c.Address.Build()
|
||||
}
|
||||
if c.Method != nil {
|
||||
c.Network = c.Method
|
||||
}
|
||||
if c.Network != nil {
|
||||
protocol, err := c.Network.Build()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user