network -> method

This commit is contained in:
RPRX
2026-07-07 00:49:31 +00:00
committed by GitHub
parent 762e669481
commit cfa095d4ce
+4
View File
@@ -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 {