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"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
@ -241,6 +242,7 @@ func initDecoderConfig(dc *mapstructure.DecoderConfig) {
|
||||||
reflect.TypeOf(config.TCPListenPortRange{}),
|
reflect.TypeOf(config.TCPListenPortRange{}),
|
||||||
reflect.TypeOf(types.PEMContent("")),
|
reflect.TypeOf(types.PEMContent("")),
|
||||||
reflect.TypeOf(config.URL{}),
|
reflect.TypeOf(config.URL{}),
|
||||||
|
reflect.TypeOf(net.IP{}),
|
||||||
reflect.TypeOf(config.CertPool{}),
|
reflect.TypeOf(config.CertPool{}),
|
||||||
reflect.TypeOf(config.Regexp{}):
|
reflect.TypeOf(config.Regexp{}):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue