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