fix: config decode net.IP (#1964)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
59c3befee6
commit
dbb64f000a
|
|
@ -20,6 +20,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
|
|
@ -241,6 +242,7 @@ func initDecoderConfig(dc *mapstructure.DecoderConfig) {
|
|||
reflect.TypeOf(config.TCPListenPortRange{}),
|
||||
reflect.TypeOf(types.PEMContent("")),
|
||||
reflect.TypeOf(config.URL{}),
|
||||
reflect.TypeOf(net.IP{}),
|
||||
reflect.TypeOf(config.CertPool{}),
|
||||
reflect.TypeOf(config.Regexp{}):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue