1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 17:25:27 -05:00

fix lint error

This commit is contained in:
Darien Raymond
2017-04-09 14:33:08 +02:00
parent 7c1b3ac1f0
commit 277a08d8a7
2 changed files with 6 additions and 6 deletions

View File

@@ -70,15 +70,15 @@ func NewCacheServer(ctx context.Context, config *dns.Config) (*CacheServer, erro
return server, nil
}
func (CacheServer) Interface() interface{} {
func (*CacheServer) Interface() interface{} {
return (*dns.Server)(nil)
}
func (CacheServer) Start() error {
func (*CacheServer) Start() error {
return nil
}
func (CacheServer) Close() {}
func (*CacheServer) Close() {}
// Private: Visible for testing.
func (v *CacheServer) GetCached(domain string) []net.IP {

View File

@@ -22,13 +22,13 @@ func New(ctx context.Context, config *proxyman.OutboundConfig) (*DefaultOutbound
}, nil
}
func (DefaultOutboundHandlerManager) Interface() interface{} {
func (*DefaultOutboundHandlerManager) Interface() interface{} {
return (*proxyman.OutboundHandlerManager)(nil)
}
func (DefaultOutboundHandlerManager) Start() error { return nil }
func (*DefaultOutboundHandlerManager) Start() error { return nil }
func (DefaultOutboundHandlerManager) Close() {}
func (*DefaultOutboundHandlerManager) Close() {}
func (v *DefaultOutboundHandlerManager) GetDefaultHandler() proxyman.OutboundHandler {
v.RLock()