1
0
www.mikescher.com/www/pages/api_setselfadress.php

10 lines
163 B
PHP
Raw Permalink Normal View History

2017-11-09 17:43:34 +01:00
<?php
2018-02-03 14:43:28 +01:00
$ip = get_client_ip();
2017-11-09 17:43:34 +01:00
2018-02-03 14:43:28 +01:00
file_put_contents(__DIR__ . '/../dynamic/self_ip_address.auto.cfg', $ip);
system('add-trusted-ip "' . $ip . '"');
2017-11-09 17:43:34 +01:00
echo 'Ok.';