mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
- Only display the default gateway when there is actually a gateway set
svn path=/trunk/; revision=37058
This commit is contained in:
parent
474c4e0362
commit
8d12e8d2cd
1 changed files with 4 additions and 1 deletions
|
@ -454,7 +454,10 @@ VOID ShowInfo(BOOL bAll)
|
|||
|
||||
_tprintf(_T("\tIP Address. . . . . . . . . . . . : %s\n"), pAdapter->IpAddressList.IpAddress.String);
|
||||
_tprintf(_T("\tSubnet Mask . . . . . . . . . . . : %s\n"), pAdapter->IpAddressList.IpMask.String);
|
||||
_tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"), pAdapter->GatewayList.IpAddress.String);
|
||||
if (pAdapter->GatewayList.IpAddress.String[0] != '0')
|
||||
_tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"), pAdapter->GatewayList.IpAddress.String);
|
||||
else
|
||||
_tprintf(_T("\tDefault Gateway . . . . . . . . . :\n"));
|
||||
|
||||
if (bAll)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue