Fix: typo (#2859)
This commit is contained in:
parent
7c89301586
commit
0578e9be4d
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user