fix: update QUIC examples to use loopback address for improved security

This commit is contained in:
yashksaini-coder
2025-09-05 20:54:33 +05:30
parent 030deb42b4
commit aa2a650f85
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ async def main():
# Configure the listening address
port = 8000
listen_addr = multiaddr.Multiaddr(f"/ip4/0.0.0.0/udp/{port}/quic-v1")
listen_addr = multiaddr.Multiaddr(f"/ip4/127.0.0.1/udp/{port}/quic-v1")
# Start the host
async with host.run(listen_addrs=[listen_addr]):