fix(lint):err check rules and fix config

This commit is contained in:
verse91
2026-05-10 02:08:00 +07:00
parent e062c0a80d
commit 56e04be409
2 changed files with 39 additions and 28 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ func NewServer() (*Server, error) {
return nil, err
}
localAddr := conn.LocalAddr().(*net.UDPAddr)
localAddr, ok := conn.LocalAddr().(*net.UDPAddr)
if !ok {
return nil, net.InvalidAddrError("not a UDP address")
}
s := &Server{
conn: conn,