Fix `wg_lan` server's tagged addr unpack
Unpack TCP's canonical proto tag before selecting the overlay host, then pass a tagged bind declaration to the child actor. The example otherwise raises before `echo_srv` starts. Review: PR #505 (goodboy) https://github.com/goodboy/tractor/pull/505#pullrequestreview-5094473850 (this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`))wkt/addr_unpacking
parent
9d1e476d04
commit
8e428527ff
|
|
@ -58,10 +58,10 @@ async def main():
|
|||
registry_addrs=[addr.overlay],
|
||||
enable_transports=[addr.overlay.proto_key],
|
||||
) as an:
|
||||
overlay_host, _ = addr.unwrap()
|
||||
_, overlay_host, _ = addr.unwrap()
|
||||
await an.start_actor(
|
||||
'echo_srv',
|
||||
bind_addrs=[(overlay_host, 0)],
|
||||
bind_addrs=[('tcp', overlay_host, 0)],
|
||||
enable_transports=[addr.overlay.proto_key],
|
||||
enable_modules=['host_a_srv'],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue