aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Weth <git@jonathanweth.de>2021-06-24 12:53:16 +0200
committerJonathan Weth <git@jonathanweth.de>2021-06-24 12:53:16 +0200
commit3526def9614ac5275f176a42938d11736233f108 (patch)
tree733396b6f6cd1c8f729385ef075ccc88a0d1526b
parent3cf9c8b9ef994b8341b3c19bb4458c198a51992c (diff)
downloadRWA.Support.SessionService-3526def9614ac5275f176a42938d11736233f108.tar.gz
RWA.Support.SessionService-3526def9614ac5275f176a42938d11736233f108.tar.bz2
RWA.Support.SessionService-3526def9614ac5275f176a42938d11736233f108.zip
Send hostname to web app
-rw-r--r--rwa/support/sessionservice/session.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rwa/support/sessionservice/session.py b/rwa/support/sessionservice/session.py
index d6dbc82..e603568 100644
--- a/rwa/support/sessionservice/session.py
+++ b/rwa/support/sessionservice/session.py
@@ -24,6 +24,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
+import platform
import secrets
import signal
import string
@@ -140,6 +141,7 @@ class Session:
"port": self.ws_port,
"pid": self.vnc_pid,
"trigger_port": self.trigger_port,
+ "hostname": str(platform.node()),
},
)
except requests.exceptions.ConnectionError: