diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/changelog.md b/changelog.md index 1456efc..32937ae 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.1 + + * Infers hostname from system settings, if no config value found. + ## 0.1.0 * Initial beta release. diff --git a/sd-rsyslog b/sd-rsyslog index 4f3233e..0943226 100644 --- a/sd-rsyslog +++ b/sd-rsyslog @@ -30,6 +30,7 @@ import os import logging import configparser from subprocess import Popen, PIPE +from socket import gethostname # Global definitions specific to your plugin process = None @@ -81,7 +82,7 @@ def onInit(): config = configparser.ConfigParser() config.read('/etc/sd-rsyslog.conf') logvmname = config['sd-rsyslog']['remotevm'] - localvmname = config['sd-rsyslog']['localvm'] + localvmname = config['sd-rsyslog'].get('localvm', gethostname()) process = Popen( ["/usr/lib/qubes/qrexec-client-vm", logvmname, "securedrop.Log"], stdin=PIPE,