X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=deb2e4a94780c07008170659047098f770984400;hp=5d6437ff893556a477e5abd2a8ae9c2300c6b257;hb=4dde583bc91985c3ff19ac1d1f1bc791b50658ff;hpb=24874d0806bac5d75663ea9de67a71171bfc97b6 diff --git a/src/conf.c b/src/conf.c index 5d6437ff..deb2e4a9 100644 --- a/src/conf.c +++ b/src/conf.c @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: conf.c,v 1.9.4.5 2000/06/30 11:45:14 guus Exp $ + $Id: conf.c,v 1.9.4.9 2000/09/06 11:49:03 guus Exp $ */ @@ -59,7 +59,7 @@ typedef struct internal_config_t { */ static internal_config_t hazahaza[] = { { "AllowConnect", allowconnect, TYPE_BOOL }, /* Is not used anywhere. Remove? */ - { "ConnectTo", upstreamip, TYPE_IP }, + { "ConnectTo", upstreamip, TYPE_NAME }, { "ConnectPort", upstreamport, TYPE_INT }, { "ListenPort", listenport, TYPE_INT }, { "MyOwnVPNIP", myvpnip, TYPE_IP }, @@ -71,6 +71,9 @@ static internal_config_t hazahaza[] = { { "VpnMask", vpnmask, TYPE_IP }, { "Hostnames", resolve_dns, TYPE_BOOL }, { "IndirectData", indirectdata, TYPE_BOOL }, + { "TCPonly", tcponly, TYPE_BOOL }, + { "Interface", interface, TYPE_NAME }, + { "InterfaceIP", interfaceip, TYPE_IP }, { NULL, 0, 0 } }; @@ -211,7 +214,7 @@ read_config_file(const char *fname) cp if((fp = fopen (fname, "r")) == NULL) { - fprintf(stderr, _("Could not open %s: %s\n"), fname, sys_errlist[errno]); + fprintf(stderr, _("Could not open %s: %s\n"), fname, strerror(errno)); return 1; }