From 898e1d878e47298f97289e50f9b0cca7ecdf2ed7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 20 Aug 2016 16:33:47 +0200 Subject: vty: use VTY_BIND_ADDR_DEFAULT instead of "127.0.0.1" Change-Id: Ice0688ac9847524cb546f6d41547090b6a3cb3d8 --- src/vty/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vty/vty.c b/src/vty/vty.c index 8c0c73ab..88ed9374 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -1678,7 +1678,7 @@ static int vty_config_write(struct vty *vty) vty_out(vty, " no login%s", VTY_NEWLINE); /* bind */ - if (vty_bind_addr && (strcmp(vty_bind_addr, "127.0.0.1") != 0)) + if (vty_bind_addr && (strcmp(vty_bind_addr, VTY_BIND_ADDR_DEFAULT) != 0)) vty_out(vty, " bind %s%s", vty_bind_addr, VTY_NEWLINE); vty_out(vty, "!%s", VTY_NEWLINE); -- cgit v1.2.3