/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 411 by dpavlin, Wed Sep 9 12:16:41 2009 UTC revision 418 by dpavlin, Wed Sep 9 19:57:58 2009 UTC
# Line 356  warn "XXX pids = ", dump( $daemons::pids Line 356  warn "XXX pids = ", dump( $daemons::pids
356                                                          . '"'                                                          . '"'
357                                                          if $ping;                                                          if $ping;
358                                                  $style ||= '';                                                  $style ||= '';
359                                                    my $ip_text = qq|<tt>$ip</tt>|;
360                                                    $ip_text = qq|<tt><b>$ip</b></tt>| if ip::in_dhcp_range($ip);
361                                                  (                                                  (
362                                                          qq|<a $style name=$ip target=$ip href=/client/$ip>$ip</a>|                                                          qq|<a $style name=$ip target=$ip href=/client/$ip>$ip_text</a>|
363                                                          , format::mac( $mac => 'html' )                                                          , format::mac( $mac => 'html' )
364                                                          , $arp->{$mac}                                                          , $arp->{$mac}
365                                                          , delete $conf->{hostname}                                                          , delete $conf->{hostname}
# Line 463  sub start { Line 465  sub start {
465    
466          my $server = IO::Socket::INET->new(          my $server = IO::Socket::INET->new(
467                          Proto     => 'tcp',                          Proto     => 'tcp',
468                          LocalAddr => $server::ip,  #                       LocalAddr => $server::ip,
469                          LocalPort => $httpd::port,                          LocalPort => $httpd::port,
470                          Listen    => SOMAXCONN,                          Listen    => SOMAXCONN,
471                          Reuse     => 1                          Reuse     => 1

Legend:
Removed from v.411  
changed lines
  Added in v.418

  ViewVC Help
Powered by ViewVC 1.1.26