Allow incoming server IP for local session keys

Version 1.49

Feature
Finished

Previously, session keys were only valid from 127.0.0.1, or if allow_foreign_key=1 was set. In some cases, even when curl_setopt(CURLOPT_INTERFACE, '127.0.0.1'); 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!