/[mws]/trunk/httpd.pl
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 /trunk/httpd.pl

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

revision 37 by dpavlin, Sun May 9 23:18:12 2004 UTC revision 39 by dpavlin, Mon May 10 14:07:44 2004 UTC
# Line 28  be used. Line 28  be used.
28          exit 1;          exit 1;
29  }  }
30    
 my $d = HTTP::Daemon->new( Reuse => 1, LocalPort => 6969 ) || die;  
 my $cgi = new CGI::Lite;  
31  my $mws = MWS->new($config_file);  my $mws = MWS->new($config_file);
32    
33    my ($local_addr,$local_port) = ('127.0.0.1',6969);
34    
35    my $listen = $mws->{config}->val('global', 'listen');
36    if ($listen =~ m/:/) {
37            ($local_addr,$local_port) = split(/:/,$listen);
38    } elsif ($listen) {
39            $local_addr = $listen;
40    }
41    
42    my $d = HTTP::Daemon->new(
43            Reuse => 1,
44            LocalAddr => $local_addr,
45            LocalPort => $local_port,
46    ) || die "can't create HTTP::Daemon";
47    
48    my $cgi = new CGI::Lite;
49  my $tt = Template->new({  my $tt = Template->new({
50          INCLUDE_PATH => $mws->{config}->val('global', 'templates'),          INCLUDE_PATH => $mws->{config}->val('global', 'templates'),
51          FILTERS => {          FILTERS => {

Legend:
Removed from v.37  
changed lines
  Added in v.39

  ViewVC Help
Powered by ViewVC 1.1.26