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
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,

View File

@ -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,