Chore: code adjustments

This commit is contained in:
Dreamacro
2020-06-07 16:54:41 +08:00
parent 8f32e6a60f
commit 2dece02df6
3 changed files with 8 additions and 5 deletions

View File

@ -23,8 +23,8 @@ const (
type NetWork int
func (n *NetWork) String() string {
if *n == TCP {
func (n NetWork) String() string {
if n == TCP {
return "tcp"
}
return "udp"