mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-18 07:18:18 +00:00
Return computer name instead of local. It's more logic when using remote controller
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import socket
|
||||
import json
|
||||
import uuid
|
||||
import os
|
||||
@ -163,7 +164,7 @@ class Compute:
|
||||
if name is not None:
|
||||
self._name = name
|
||||
elif self._id == "local":
|
||||
self._name = "Local"
|
||||
self._name = socket.gethostname()
|
||||
else:
|
||||
if self._user:
|
||||
user = self._user
|
||||
|
Reference in New Issue
Block a user