mirror of
https://github.com/lwch/natpass
synced 2025-10-27 22:11:27 +08:00
去除无用代码
This commit is contained in:
@@ -50,7 +50,6 @@ func New(cfg *global.Configure) *Handler {
|
||||
func (h *Handler) Handle(conn net.Conn) {
|
||||
c := network.NewConn(conn)
|
||||
var id string
|
||||
var idx uint32
|
||||
defer func() {
|
||||
if len(id) > 0 {
|
||||
logging.Info("%s disconnected", id)
|
||||
@@ -73,7 +72,7 @@ func (h *Handler) Handle(conn net.Conn) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
logging.Info("%s-%d connected", id, idx)
|
||||
logging.Info("%s connected", id)
|
||||
|
||||
cli := h.clis.new(id, c)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user