From 277a08d8a7b0c684f14f9b7b77d2c237c11e5232 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 9 Apr 2017 14:33:08 +0200 Subject: [PATCH] fix lint error --- app/dns/server/server.go | 6 +++--- app/proxyman/outbound/outbound.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/dns/server/server.go b/app/dns/server/server.go index a2f6bedc..093c4724 100644 --- a/app/dns/server/server.go +++ b/app/dns/server/server.go @@ -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 { diff --git a/app/proxyman/outbound/outbound.go b/app/proxyman/outbound/outbound.go index a672bc0d..bd8b9cf1 100644 --- a/app/proxyman/outbound/outbound.go +++ b/app/proxyman/outbound/outbound.go @@ -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()