mnet: make sure listen-addr param's usage starts with uppercase

This commit is contained in:
Brian Picciano 2019-02-02 19:55:42 -05:00
parent f02f2904b0
commit 526639041b

View File

@ -4,6 +4,7 @@ package mnet
import (
"net"
"strings"
"github.com/mediocregopher/mediocre-go-lib/mcfg"
"github.com/mediocregopher/mediocre-go-lib/mctx"
@ -35,7 +36,7 @@ func MListen(ctx mctx.Context, network, defaultAddr string) *MListener {
if defaultAddr == "" {
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.log = mlog.From(ctx)