Branch: Tag:

1998-07-07

1998-07-07 19:00:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed reopening of SSL configport if the certificate is changed.

Rev: server/base_server/roxen.pike:1.215

1: - constant cvs_version = "$Id: roxen.pike,v 1.214 1998/07/04 22:42:43 grubba Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.215 1998/07/07 19:00:39 grubba Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
1006:    "type":"text/html" ]);   }    + static string MKPORTKEY(array(string) p) + { +  if (sizeof(p[3])) { +  return(sprintf("%s://%s:%s/(%s)", +  p[1], p[2], (string)p[0], +  replace(p[3], ({"\n", "\r"}), ({ " ", " " })))); +  } else { +  return(sprintf("%s://%s:%s/", +  p[1], p[2], (string)p[0])); +  } + } +    // Is this only used to hold the config-ports?   // Seems like it. Changed to a mapping.   private mapping(string:object) configuration_ports = ([]);
1919:    // First find out if we have any new ports.    mapping(string:array(string)) new_ports = ([]);    foreach(QUERY(ConfigPorts), port) { -  string key = port[1]+"://"+port[2]+":"+port[0]; +  string key = MKPORTKEY(port);    if (!configuration_ports[key]) {    report_notice(sprintf("New configuration port: %s\n", key));    new_ports[key] = port;