Skip to content

Commit

Permalink
Fix: typo (#2859)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaling888 authored Aug 4, 2023
1 parent 7c89301 commit 0578e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

// General config
type General struct {
LagecyInbound
LegacyInbound
Controller
Authentication []string `json:"authentication"`
Mode T.TunnelMode `json:"mode"`
Expand All @@ -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"`
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion hub/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0578e9b

Please sign in to comment.