diff --git a/config/config.go b/config/config.go index 48b53b0..a0ccc0b 100644 --- a/config/config.go +++ b/config/config.go @@ -28,7 +28,7 @@ import ( // General config type General struct { - LagecyInbound + LegacyInbound Controller Authentication []string `json:"authentication"` Mode T.TunnelMode `json:"mode"` @@ -45,7 +45,7 @@ type Controller struct { Secret string `json:"-"` } -type LagecyInbound struct { +type LegacyInbound struct { Port int `json:"port"` SocksPort int `json:"socks-port"` RedirPort int `json:"redir-port"` @@ -329,7 +329,7 @@ func parseGeneral(cfg *RawConfig) (*General, error) { } return &General{ - LagecyInbound: LagecyInbound{ + LegacyInbound: LegacyInbound{ Port: cfg.Port, SocksPort: cfg.SocksPort, RedirPort: cfg.RedirPort, diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 3f0d487..99ebc20 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -87,7 +87,7 @@ func GetGeneral() *config.General { } general := &config.General{ - LagecyInbound: config.LagecyInbound{ + LegacyInbound: config.LegacyInbound{ Port: ports.Port, SocksPort: ports.SocksPort, RedirPort: ports.RedirPort,