From 63d3c9fa3040507fb9d20d06d76f55b4078c7724 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 2 Nov 2016 16:18:29 +0100 Subject: [PATCH] typo --- proxy/shadowsocks/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/shadowsocks/server.go b/proxy/shadowsocks/server.go index 64416f6a..54c08958 100644 --- a/proxy/shadowsocks/server.go +++ b/proxy/shadowsocks/server.go @@ -4,6 +4,7 @@ package shadowsocks import ( "sync" + "errors" "v2ray.com/core/app" "v2ray.com/core/app/dispatcher" "v2ray.com/core/common" @@ -34,7 +35,7 @@ func NewServer(config *ServerConfig, space app.Space, meta *proxy.InboundHandler return nil, protocol.ErrUserMissing } - rawAccount, err := user.GetTypedAccount() + rawAccount, err := config.User.GetTypedAccount() if err != nil { return nil, errors.New("Shadowsocks|Server: Failed to get user account: " + err.Error()) }