1
0
This commit is contained in:
yaling888 2023-08-04 21:27:48 +08:00 committed by GitHub
parent 7c89301586
commit 0578e9be4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ import (
// General config // General config
type General struct { type General struct {
LagecyInbound LegacyInbound
Controller Controller
Authentication []string `json:"authentication"` Authentication []string `json:"authentication"`
Mode T.TunnelMode `json:"mode"` Mode T.TunnelMode `json:"mode"`
@ -45,7 +45,7 @@ type Controller struct {
Secret string `json:"-"` Secret string `json:"-"`
} }
type LagecyInbound struct { type LegacyInbound struct {
Port int `json:"port"` Port int `json:"port"`
SocksPort int `json:"socks-port"` SocksPort int `json:"socks-port"`
RedirPort int `json:"redir-port"` RedirPort int `json:"redir-port"`
@ -329,7 +329,7 @@ func parseGeneral(cfg *RawConfig) (*General, error) {
} }
return &General{ return &General{
LagecyInbound: LagecyInbound{ LegacyInbound: LegacyInbound{
Port: cfg.Port, Port: cfg.Port,
SocksPort: cfg.SocksPort, SocksPort: cfg.SocksPort,
RedirPort: cfg.RedirPort, RedirPort: cfg.RedirPort,

View File

@ -87,7 +87,7 @@ func GetGeneral() *config.General {
} }
general := &config.General{ general := &config.General{
LagecyInbound: config.LagecyInbound{ LegacyInbound: config.LegacyInbound{
Port: ports.Port, Port: ports.Port,
SocksPort: ports.SocksPort, SocksPort: ports.SocksPort,
RedirPort: ports.RedirPort, RedirPort: ports.RedirPort,