From a5b81c715d331ef2c799eaf20c10e384355c5667 Mon Sep 17 00:00:00 2001 From: 4-FLOSS-Free-Libre-Open-Source-Software <46166740+4-FLOSS-Free-Libre-Open-Source-Software@users.noreply.github.com> Date: Thu, 1 Aug 2019 22:13:59 +0200 Subject: resolve nat_public_ip hostname for dyndns to work --- src/phone_user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phone_user.cpp b/src/phone_user.cpp index c52f396..632d07b 100644 --- a/src/phone_user.cpp +++ b/src/phone_user.cpp @@ -1499,7 +1499,7 @@ bool t_phone_user::get_last_reg_failed(void) const { string t_phone_user::get_ip_sip(const string &auto_ip) const { if (stun_public_ip_sip) return h_ip2str(stun_public_ip_sip); - if (user_config->get_use_nat_public_ip()) return user_config->get_nat_public_ip(); + if (user_config->get_use_nat_public_ip()) return h_ip2str(gethostbyname(user_config->get_nat_public_ip())); if (LOCAL_IP == AUTO_IP4_ADDRESS) return auto_ip; return LOCAL_IP; } -- cgit v1.2.3