--- a/runtime/PLCObject.py Wed Feb 26 16:17:15 2025 +0100
+++ b/runtime/PLCObject.py Wed Feb 26 16:24:35 2025 +0100
@@ -573,7 +573,12 @@
- return getPSKID(partial(self.LogMessage, 0))
+ self.LogMessage(0, str(e)) self.blobs = {} # dict of list
--- a/runtime/Stunnel.py Wed Feb 26 16:17:15 2025 +0100
+++ b/runtime/Stunnel.py Wed Feb 26 16:24:35 2025 +0100
@@ -44,13 +44,12 @@
if not os.path.exists(_PSKpath):
'Error: Pre-Shared-Key Secret in %s is missing!\n' % _PSKpath)
ID, _sep, PSK = open(_PSKpath).read().partition(':')
--- a/runtime/WampClient.py Wed Feb 26 16:17:15 2025 +0100
+++ b/runtime/WampClient.py Wed Feb 26 16:24:35 2025 +0100
@@ -45,6 +45,7 @@
from nevow import tags, url, static
from runtime import GetPLCObjectSingleton
+from runtime.Stunnel import getPSKID mandatoryConfigItems = ["ID", "active", "realm", "url"]
@@ -308,7 +309,16 @@
if _WampSecret is not None:
- WampClientConf["secret"] = LoadWampSecret(_WampSecret)
+ if _WampSecret == _WampSecretDefault: + # secret from project dir is raw (no ID prefix) + secret = LoadWampSecret(_WampSecret) + # secret from command line is formated ID:PSK + # fall back to PSK data (works because wampsecret is PSKpath) + _ID, secret = getPSKID() + WampClientConf["secret"] = secret print(_("WAMP authentication has no secret configured"))
_WampSecret = _WampSecretDefault