diff --git a/src/switch_core.c b/src/switch_core.c index c82e04e0bf..0082fd3d2f 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -107,7 +107,7 @@ static void check_ip(void) { switch_set_string(old_ip4, main_ip4); switch_set_string(main_ip4, guess_ip4); switch_core_set_variable("local_ip_v4", guess_ip4); - switch_core_set_variable("local_mask_v4", inet_ntoa(*(struct in_addr *)&mask)); + switch_core_set_variable("local_mask_v4", inet_ntoa(*(struct in_addr *)(intptr_t)&mask)); } }