Ignore:
Timestamp:
2011-08-23T20:28:57+12:00 (13 years ago)
Author:
ak19
Message:

Better way to ensure that the port is not arbitrarily modified. This bypasses the need to turn on the Do Not Modify Port server setting option by default, which then bypasses the need to make 8282 the default port for GS2 (which would have been necessary since the old GS2 default port of 80 would not have coped well with the Do Not Modify Port switch turned on by default).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/server/BaseServer.java

    r22085 r24455  
    6464   
    6565    config_properties = new Properties();
    66     reloadConfigProperties();
     66    reloadConfigProperties(true); // first time starting the server, work out port_number
    6767
    6868    dictionary = new Dictionary("server", lang, this.getClass().getClassLoader()); 
     
    250250    }
    251251   
    252     public  void reloadConfigProperties() {
     252    public  void reloadConfigProperties(boolean port_has_changed) {
    253253    try {
    254254        FileInputStream in = new FileInputStream(config_properties_file);
Note: See TracChangeset for help on using the changeset viewer.