diff options
Diffstat (limited to 'examples/webchannel/standalone/main.py')
-rw-r--r-- | examples/webchannel/standalone/main.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/webchannel/standalone/main.py b/examples/webchannel/standalone/main.py index 8459b1a92..b344ec795 100644 --- a/examples/webchannel/standalone/main.py +++ b/examples/webchannel/standalone/main.py @@ -1,4 +1,5 @@ -# Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], author Milian Wolff <[email protected]> +# Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected], +# author Milian Wolff <[email protected]> # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause from __future__ import annotations @@ -32,8 +33,8 @@ if __name__ == '__main__': # setup the QWebSocketServer server = QWebSocketServer("QWebChannel Standalone Example Server", - QWebSocketServer.NonSecureMode) - if not server.listen(QHostAddress.LocalHost, 12345): + QWebSocketServer.SslMode.NonSecureMode) + if not server.listen(QHostAddress.SpecialAddress.LocalHost, 12345): print("Failed to open web socket server.") sys.exit(-1) |