mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
rename Error to Err
This commit is contained in:
@@ -163,8 +163,8 @@ func (this *Server) handleSocks5(clientAddr string, reader *v2io.BufferedReader,
|
||||
}
|
||||
if status != byte(0) {
|
||||
log.Warning("Socks: Invalid user account: ", upRequest.AuthDetail())
|
||||
log.Access(clientAddr, "", log.AccessRejected, proxy.ErrorInvalidAuthentication)
|
||||
return proxy.ErrorInvalidAuthentication
|
||||
log.Access(clientAddr, "", log.AccessRejected, proxy.ErrInvalidAuthentication)
|
||||
return proxy.ErrInvalidAuthentication
|
||||
}
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ func (this *ServerFactory) StreamCapability() internet.StreamConnectionType {
|
||||
|
||||
func (this *ServerFactory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error) {
|
||||
if !space.HasApp(dispatcher.APP_ID) {
|
||||
return nil, internal.ErrorBadConfiguration
|
||||
return nil, internal.ErrBadConfiguration
|
||||
}
|
||||
return NewServer(
|
||||
rawConfig.(*Config),
|
||||
|
||||
Reference in New Issue
Block a user