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.
This commit is contained in:
Harald Welte 2010-12-24 15:10:14 +01:00
parent 4f4b0101c4
commit df327f6d81
1 changed files with 1 additions and 1 deletions

View File

@ -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;