]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
- 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 cc547dbbdb717ba2bb01476a8f62625013330f5a..ffff0acf6ec7c3f798451f1bf8924e9d5b58f8dd 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;