Accept gateway value of NO
This commit is contained in:
parent
f12eb036fd
commit
87757a15d3
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue