summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-24 15:10:14 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-24 15:10:14 +0100
commitdf327f6d81be9c73acba7b4edfa4f9336fcb686c (patch)
treec25b6efac95c0018877006031f3b9fcd5d5cb6fd
parent4f4b0101c4bab996ad6d3258f8036c001a45000b (diff)
Use the app_info->name instead of the hostname
This makes more sense in case you run BCS, SGSN and other components on the same host. Having multiple telnet sessions with the same prompt can otherwise be confusing.
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 5c5a908d..a5b16dce 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -306,7 +306,7 @@ static void vty_prompt(struct vty *vty)
const char *hostname;
if (vty->type == VTY_TERM) {
- hostname = host.name;
+ hostname = host.app_info->name;
if (!hostname) {
uname(&names);
hostname = names.nodename;