Ignore:
Timestamp:
2005-07-08T11:54:05+12:00 (19 years ago)
Author:
mdewsnip
Message:

Added some alternative methods of resolving the address the local library will attempt to load, since many people have reported problems with the existing method lately. The first new method determines the IP but doesn't resolve it to a name, and the second new method always uses "127.0.0.1". This option is controlled using the "address_resolution_method" option in the Local Library gsdlsite.cfg file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/settings.cpp

    r10224 r10231  
    6666text_t gsdl_conffile;
    6767int gsdl_start_browser = 1;
     68int gsdl_address_resolution_method = 0;
    6869
    6970// private data
     
    311312    write_ini_line(fout, "collections", gsdl_collections);
    312313    write_ini_line(fout, "start_browser", text_t(gsdl_start_browser));
    313    
     314    write_ini_line(fout, "address_resolution_method", text_t(gsdl_address_resolution_method));
     315
    314316    // collection levels
    315317    colinfo_tmap::iterator here = gsdl_collectinfo.begin();
     
    466468      } else if (key == "browserexe") {
    467469        strcpy (gsdl_browser_exe, cstr_value);
     470
     471      } else if (key == "address_resolution_method") {
     472        gsdl_address_resolution_method = value.getint();
    468473
    469474      } else if (key == "collections") {
Note: See TracChangeset for help on using the changeset viewer.