Ignore:
Timestamp:
2009-04-22T22:32:44+12:00 (15 years ago)
Author:
davidb
Message:

Local Library Server can now either be configured to connects from anywhere or be restricted to only allow local connections. The option is controlled by setting 'externalaccess' to 1 or 0 appropriately. A widget for this is provided under File/Settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/w32server/netio.cpp

    r9598 r19210  
    3535#include "locate.h"
    3636#include "d_winsock.h"
     37#include "settings.h"
    3738
    3839//Private Variables and Declarations
     
    217218    ServerSockAddr.sin_port = d_htons( (WORD) bind_port);
    218219    ServerSockAddr.sin_family = AF_INET;
    219     ServerSockAddr.sin_addr.s_addr = d_htonl(INADDR_ANY);
    220    
     220    if (gsdl_external_access) {
     221      ServerSockAddr.sin_addr.s_addr = d_htonl(INADDR_ANY);
     222    }
     223    else {
     224      ServerSockAddr.sin_addr.s_addr = d_htonl(INADDR_LOOPBACK);
     225    }
     226
     227
    221228    // Try to bind the socket with the address
    222229    if (d_bind(ServerSocket, (LPSOCKADDR) &ServerSockAddr,
Note: See TracChangeset for help on using the changeset viewer.