Accept gateway value of NO

This commit is contained in:
Jordan K. Hubbard 1998-08-31 09:02:03 +00:00
parent f12eb036fd
commit 87757a15d3
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: tcpip.c,v 1.71 1997/09/17 13:33:14 jkh Exp $
* $Id: tcpip.c,v 1.72 1997/09/17 16:18:22 pst Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@ -132,7 +132,7 @@ verifySettings(void)
{
if (!hostname[0])
feepout("Must specify a host name of some sort!");
else if (gateway[0] && !verifyIP(gateway))
else if (gateway[0] && strcmp(gateway, "NO") && !verifyIP(gateway))
feepout("Invalid gateway IP address specified");
else if (nameserver[0] && !verifyIP(nameserver))
feepout("Invalid name server IP address specified");

View File

@ -1,5 +1,5 @@
/*
* $Id: tcpip.c,v 1.71 1997/09/17 13:33:14 jkh Exp $
* $Id: tcpip.c,v 1.72 1997/09/17 16:18:22 pst Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@ -132,7 +132,7 @@ verifySettings(void)
{
if (!hostname[0])
feepout("Must specify a host name of some sort!");
else if (gateway[0] && !verifyIP(gateway))
else if (gateway[0] && strcmp(gateway, "NO") && !verifyIP(gateway))
feepout("Invalid gateway IP address specified");
else if (nameserver[0] && !verifyIP(nameserver))
feepout("Invalid name server IP address specified");