mnet: make sure listen-addr param's usage starts with uppercase
This commit is contained in:
parent
f02f2904b0
commit
526639041b
@ -4,6 +4,7 @@ package mnet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/mediocregopher/mediocre-go-lib/mcfg"
|
"github.com/mediocregopher/mediocre-go-lib/mcfg"
|
||||||
"github.com/mediocregopher/mediocre-go-lib/mctx"
|
"github.com/mediocregopher/mediocre-go-lib/mctx"
|
||||||
@ -35,7 +36,7 @@ func MListen(ctx mctx.Context, network, defaultAddr string) *MListener {
|
|||||||
if defaultAddr == "" {
|
if defaultAddr == "" {
|
||||||
defaultAddr = ":0"
|
defaultAddr = ":0"
|
||||||
}
|
}
|
||||||
addr := mcfg.String(ctx, "listen-addr", defaultAddr, network+" address to listen on in format [host]:port. If port is 0 then a random one will be chosen")
|
addr := mcfg.String(ctx, "listen-addr", defaultAddr, strings.ToUpper(network)+" address to listen on in format [host]:port. If port is 0 then a random one will be chosen")
|
||||||
|
|
||||||
l := new(MListener)
|
l := new(MListener)
|
||||||
l.log = mlog.From(ctx)
|
l.log = mlog.From(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user