Add Public IP Service handling to config and GetPublicIP().

This commit is contained in:
cameronts
2022-07-27 16:45:12 -07:00
parent 2585e88d79
commit 1cb42e8f8b
5 changed files with 27 additions and 4 deletions

View File

@@ -66,6 +66,13 @@ func GetFlags(hostname string) []cli.Flag {
Value: "",
Usage: "Identifiable name for machine within Netmaker network.",
},
&cli.StringFlag{
Name: "publicipservice",
Aliases: []string{"ip-service"},
EnvVars: []string{"NETCLIENT_IP_SERVICE"},
Value: "",
Usage: "The service to call to obtain the public IP of the machine that is running netclient.",
},
&cli.StringFlag{
Name: "name",
EnvVars: []string{"NETCLIENT_NAME"},