noisiv 1
noisiv
Manwe Work 1
Manwe Work
Karan2offical 1
Karan2offical
Fethi Polat 1
Fethi Polat
ShadowFon 1
ShadowFon
bikral 1
bikral
-TuRKuaZ- 1
-TuRKuaZ-
SLyFeLLowTR 1
SLyFeLLowTR
TGamesZeus 1
TGamesZeus
Best Studio 1
Best Studio
berkmenoo 1
berkmenoo
InfernoShade 1
InfernoShade
Hikaye Ekle

Altın Konu Jinhu - Aves2 55-120 Server Files

5.00 yıldız(lar) 2 Değerlendirme Değerlendirenler

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

bool GetIPInfo()
{
struct ifaddrs* ifaddrp = NULL;

if (0 != getifaddrs(&ifaddrp)) return false;

for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next )
{
struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr;
if (!ifap->ifa_netmask || sai->sin_addr.s_addr == 0 || sai->sin_addr.s_addr == 16777343) continue;
char * netip = inet_ntoa(sai->sin_addr);

if (!strncmp(netip, "28.28.0.0", 10)) // ignore if address is starting with 192
continue;

if (g_szPublicIP[0] != '0')
{
strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP));
fprintf(stderr, "INTERNAL_IP: %s interface %s\n", netip, ifap->ifa_name);
}
else if (g_szPublicIP[0] == '0')
{
strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP));
fprintf(stderr, "PUBLIC_IP: %s interface %s\n", netip, ifap->ifa_name);
}
}

if (g_szPublicIP[0] != '0')
return true;
else
return false;
}

Burada bir şey değiştirmem gerekiyor mu?
 
paylaşım için teşekkürler
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst