1
0
www.mikescher.com/www/commands/server_setselfaddress.php

10 lines
159 B
PHP
Raw Normal View History

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