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

@@ -44,7 +44,7 @@ func checkin() {
nodeCfg.Network = network
nodeCfg.ReadConfig()
if nodeCfg.Node.IsStatic != "yes" {
extIP, err := ncutils.GetPublicIP()
extIP, err := ncutils.GetPublicIP(nodeCfg.GlobalSettings.PublicIPService)
if err != nil {
logger.Log(1, "error encountered checking public ip addresses: ", err.Error())
}