We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c43119e commit 3be72dbCopy full SHA for 3be72db
pymodbus/client/tcp.py
@@ -47,6 +47,8 @@ def __init__(
47
asyncio.Protocol.__init__(self)
48
if "CommType" not in kwargs:
49
kwargs["CommType"] = CommType.TCP
50
+ if source_address:
51
+ kwargs["source_address"] = source_address
52
ModbusBaseClient.__init__(
53
self,
54
framer=framer,
pymodbus/transport/transport.py
@@ -37,7 +37,7 @@ class CommParams:
37
timeout_connect: float = None
38
host: str = "127.0.0.1"
39
port: int = 0
40
- source_address: tuple[str, int] = ("127.0.0.1", 0)
+ source_address: tuple[str, int] = ("0.0.0.0", 0)
41
handle_local_echo: bool = False
42
43
# tls
0 commit comments