Changeset 1396 in genappalpha
- Timestamp:
- Feb 9, 2018, 2:57:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbin/setconfig.pl
r1356 r1396 234 234 } 235 235 236 $hostname = `host $hostip` if !$hostname; 237 chomp $hostname; 238 if ( $hostname =~ /(not found|no PTR record)/ ) { 239 $hostname = $hostip; 240 } else { 241 ( $hostname ) = $hostname =~ /\s+(\S+)\.$/; 236 if ( !$hostname ) { 237 $hostname = `host $hostip`; 238 chomp $hostname; 239 if ( $hostname =~ /(not found|no PTR record)/ ) { 240 $hostname = $hostip; 241 } else { 242 ( $hostname ) = $hostname =~ /\s+(\S+)\.$/; 243 } 242 244 } 243 245
Note: See TracChangeset
for help on using the changeset viewer.