mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
Simpilify configuration files
This commit is contained in:
1 parent
78daf8a879
commit
72b4eeba8b
27 files changed
+251
-208
No files matched your search
@@ -19,15 +19,10 @@ import (
|
||||
type SocksServer struct {
|
||||
accepting bool
|
||||
vPoint *core.Point
|
||||
config jsonconfig.SocksConfig
|
||||
config *jsonconfig.SocksConfig
|
||||
}
|
||||
|
||||
func NewSocksServer(vp *core.Point, rawConfig []byte) *SocksServer {
|
||||
config, err := jsonconfig.Load(rawConfig)
|
||||
if err != nil {
|
||||
log.Error("Unable to load socks config: %v", err)
|
||||
panic(errors.NewConfigurationError())
|
||||
}
|
||||
func NewSocksServer(vp *core.Point, config *jsonconfig.SocksConfig) *SocksServer {
|
||||
return &SocksServer{
|
||||
vPoint: vp,
|
||||
config: config,
|
||||
|
||||
Reference in new issue
Block a user