Allow incoming server IP for local session keys

Version 1.49


Previously, session keys were only valid from, or if allow_foreign_key=1 was set. In some cases, even when curl_setopt(CURLOPT_INTERFACE, ''); is explicitly set, the connection still arrived to DA from the server IP. The change is to allow session keys from the server IP, as obtained from the ethernet_dev setting in the directadmin.conf, using ioctl(sck, SIOCGIFADDR, &ifr);

Interested to try DirectAdmin? Get a 30-day Free Trial!