mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
4f4b0101c4
commit
df327f6d81
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue