Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion znet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func (s *Server) StartConn(conn ziface.IConnection) {
}

func (s *Server) ListenTcpConn() {
zlog.Ins().InfoF("[START] TCP Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.Port)
// 1. Get a TCP address
addr, err := net.ResolveTCPAddr(s.IPVersion, fmt.Sprintf("%s:%d", s.IP, s.Port))
if err != nil {
Expand Down Expand Up @@ -417,7 +418,6 @@ func (s *Server) ListenKcpConn() {
// Start the network service
// (开启网络服务)
func (s *Server) Start() {
zlog.Ins().InfoF("[START] Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.Port)
s.exitChan = make(chan struct{})

// Add decoder to interceptors head
Expand Down
Loading