diff options
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r-- | vpn/vpn-provider.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c index eb12f04e..5dfd0106 100644 --- a/vpn/vpn-provider.c +++ b/vpn/vpn-provider.c @@ -1749,7 +1749,13 @@ const char *vpn_provider_get_string(struct vpn_provider *provider, return provider->name; else if (g_str_equal(key, "Host") == TRUE) return provider->host; - else if (g_str_equal(key, "VPN.Domain") == TRUE) + else if (g_str_equal(key, "HostIP") == TRUE) { + if (provider->host_ip == NULL || + provider->host_ip[0] == NULL) + return provider->host; + else + return provider->host_ip[0]; + } else if (g_str_equal(key, "VPN.Domain") == TRUE) return provider->domain; return g_hash_table_lookup(provider->setting_strings, key); |