From 4bc7920b472bf9ec70a5a1172bdbf1ed1c3f7c3e Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Fri, 4 Aug 2023 23:28:19 +0800 Subject: [PATCH] fix log space --- core/sing/hook.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/sing/hook.go b/core/sing/hook.go index 35f72ad..c4fd104 100644 --- a/core/sing/hook.go +++ b/core/sing/hook.go @@ -48,13 +48,13 @@ func (h *HookServer) RoutedConnection(_ context.Context, conn net.Conn, m adapte if l.CheckDomainRule(m.Domain) { conn.Close() h.logger.Error("[", m.Inbound, "] ", - "Limited ", m.User, "access to", m.Domain, " by domain rule") + "Limited ", m.User, " access to ", m.Domain, " by domain rule") return conn, &Tracker{l: func() {}} } if l.CheckProtocolRule(m.Protocol) { conn.Close() h.logger.Error("[", m.Inbound, "] ", - "Limited ", m.User, "use", m.Domain, " by protocol rule") + "Limited ", m.User, " use ", m.Domain, " by protocol rule") return conn, &Tracker{l: func() {}} } ip := m.Source.Addr.String() @@ -90,13 +90,13 @@ func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn if l.CheckDomainRule(m.Domain) { conn.Close() h.logger.Error("[", m.Inbound, "] ", - "Limited ", m.User, "access to", m.Domain, " by domain rule") + "Limited ", m.User, " access to ", m.Domain, " by domain rule") return conn, t } if l.CheckProtocolRule(m.Protocol) { conn.Close() h.logger.Error("[", m.Inbound, "] ", - "Limited ", m.User, "use", m.Domain, " by protocol rule") + "Limited ", m.User, " use ", m.Domain, " by protocol rule") return conn, t } ip := m.Source.Addr.String()