- added localhost to config
authorMartin Willi <martin@strongswan.org>
Sat, 26 Nov 2005 15:41:21 +0000 (15:41 -0000)
committerMartin Willi <martin@strongswan.org>
Sat, 26 Nov 2005 15:41:21 +0000 (15:41 -0000)
Source/charon/config/configuration_manager.c

index cc547db..ffff0ac 100644 (file)
@@ -74,6 +74,10 @@ static status_t get_remote_host(private_configuration_manager_t *this, char *nam
        {
                remote = host_create(AF_INET, "152.96.193.131", 500);
        }
+       else if (strcmp(name, "localhost") == 0)
+       {
+               remote = host_create(AF_INET, "127.0.0.1", 500);
+       }
        else
        {
                status = NOT_FOUND;