1
0
www.mikescher.com/www/pages/api_setselfadress.php
2018-02-03 14:43:28 +01:00

10 lines
163 B
PHP

<?php
$ip = get_client_ip();
file_put_contents(__DIR__ . '/../dynamic/self_ip_address.auto.cfg', $ip);
system('add-trusted-ip "' . $ip . '"');
echo 'Ok.';