mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
fix log space
This commit is contained in:
parent
e93706445f
commit
4bc7920b47
@ -48,13 +48,13 @@ func (h *HookServer) RoutedConnection(_ context.Context, conn net.Conn, m adapte
|
|||||||
if l.CheckDomainRule(m.Domain) {
|
if l.CheckDomainRule(m.Domain) {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
h.logger.Error("[", m.Inbound, "] ",
|
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() {}}
|
return conn, &Tracker{l: func() {}}
|
||||||
}
|
}
|
||||||
if l.CheckProtocolRule(m.Protocol) {
|
if l.CheckProtocolRule(m.Protocol) {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
h.logger.Error("[", m.Inbound, "] ",
|
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() {}}
|
return conn, &Tracker{l: func() {}}
|
||||||
}
|
}
|
||||||
ip := m.Source.Addr.String()
|
ip := m.Source.Addr.String()
|
||||||
@ -90,13 +90,13 @@ func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn
|
|||||||
if l.CheckDomainRule(m.Domain) {
|
if l.CheckDomainRule(m.Domain) {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
h.logger.Error("[", m.Inbound, "] ",
|
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
|
return conn, t
|
||||||
}
|
}
|
||||||
if l.CheckProtocolRule(m.Protocol) {
|
if l.CheckProtocolRule(m.Protocol) {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
h.logger.Error("[", m.Inbound, "] ",
|
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
|
return conn, t
|
||||||
}
|
}
|
||||||
ip := m.Source.Addr.String()
|
ip := m.Source.Addr.String()
|
||||||
|
Loading…
Reference in New Issue
Block a user