Skip to content

Commit

Permalink
add default network
Browse files Browse the repository at this point in the history
  • Loading branch information
liujianping committed Dec 17, 2019
1 parent cc6a138 commit c78eaab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tcpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ type ServerOpt func(*Server)

//NewServer create a new tcpserver
func New(opts ...ServerOpt) *Server {
serv := &Server{}
serv := &Server{
network: "tcp",
}
for _, opt := range opts {
opt(serv)
}
Expand Down

0 comments on commit c78eaab

Please sign in to comment.