mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 19:00:25 +08:00
Add Public IP Service handling to config and GetPublicIP().
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user