mirror of
https://git.hackfreedom.org/mesh.cat/meshname.git
synced 2026-05-22 06:22:32 +00:00
add alternative port for _acme-challenge
This commit is contained in:
@@ -32,6 +32,7 @@ var (
|
||||
listenAddr, networksconf string
|
||||
meshipNetworksconf string
|
||||
getName, getIP string
|
||||
acmePort string
|
||||
debug, noMeshIP bool
|
||||
)
|
||||
|
||||
@@ -42,6 +43,7 @@ func init() {
|
||||
flag.BoolVar(&noMeshIP, "nomeship", false, "disable .meship resolver")
|
||||
flag.StringVar(&getName, "getname", "", "convert IPv6 address to a name")
|
||||
flag.StringVar(&getIP, "getip", "", "convert a name to IPv6 address")
|
||||
flag.StringVar(&acmePort, "acmeport", "53536", "try alternative port for acme challenges")
|
||||
flag.BoolVar(&debug, "debug", false, "enable debug logging")
|
||||
}
|
||||
|
||||
@@ -80,7 +82,7 @@ func main() {
|
||||
logger.Fatalln(err)
|
||||
}
|
||||
|
||||
s := meshname.New(logger, listenAddr, networks, meshipNetworks, !noMeshIP)
|
||||
s := meshname.New(logger, listenAddr, networks, meshipNetworks, !noMeshIP, acmePort)
|
||||
|
||||
if err := s.Start(); err != nil {
|
||||
logger.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user