Changeset 1397 in genapp
- Timestamp:
- Feb 9, 2018, 3:39:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbin/setconfig.pl
r1395 r1397 255 255 } 256 256 257 $hostname = $$json{ 'hostname' }; 258 # verify hostname matches ip address 259 { 260 my $nametoip; 261 if ( `which dig 2> /dev/null` ) { 262 $nametoip = `dig +short $hostname`; 263 } else { 264 $nametoip = `host $hostname | awk '/has address/ { print \$4 }'`; 265 } 266 chomp $nametoip; 267 if ( $nametoip ne $hostip ) { 268 $notice .= "WARNING: the ip address from a DNS lookup [$nametoip] of the hostname [$hostname] does not match the hostip [$hostip]. This will create issues unless you really understand what you are doing!\n"; 269 } 270 } 271 272 257 273 my $wssport = $https ? 443 : 80; 258 274 my $wsport = 30777;
Note: See TracChangeset
for help on using the changeset viewer.