mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-16 03:45:06 +00:00
pickip in rcon2irc: handle "override ip not set"
This commit is contained in:
parent
03fd9a1c7f
commit
b53b0c7c7e
@ -766,8 +766,11 @@ our %config = (
|
||||
sub pickip($$)
|
||||
{
|
||||
my ($wan, $lan) = @_;
|
||||
# $wan shall override $lan
|
||||
return $lan
|
||||
if not length $wan;
|
||||
return $wan
|
||||
if $wan =~ /:\d+$/;
|
||||
if $wan =~ /:\d+$/; # full override
|
||||
return $wan
|
||||
if $lan !~ /:(\d+)$/;
|
||||
return "$wan:$1";
|
||||
|
Loading…
Reference in New Issue
Block a user