DaRealFreak / teeworlds-stats

PHP project to track and display stats for the game teeworlds
MIT License
0 stars 0 forks source link

Use IPv6 as default for networking #11

Closed DaRealFreak closed 6 years ago

DaRealFreak commented 6 years ago

use IPv6 as default for network operations. The master servers are returning IPv6 addresses if the socket is an IPv6 type $sock = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);

DaRealFreak commented 6 years ago

the teeworlds master servers don't support IPv6 so far, in case it gets supported in the future only \App\TwStats\Controller\NetworkController::PROTOCOL_FAMILY has to get set to AF_INET6