Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Aug 20, 2023
1 parent a072c94 commit e19ddf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hole-punching-tests/relay-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def build(self):
host = self.addHost('hrelay', ip='10.0.0.1/24')
self.addLink(host, inetSwitch, cls=TCLink, delay = '30ms')


def tcpHolepunch(mininet: Mininet, hRelay, hClient):
relay = mininet.getNodeByName('hrelay')
alice = mininet.getNodeByName('halice')
Expand All @@ -51,6 +52,7 @@ def tcpHolepunch(mininet: Mininet, hRelay, hClient):
time.sleep(5)
bob.cmdPrint(f"{hClient} --mode dial --secret-key-seed 3 --relay-address /ip4/{relay.IP()}/tcp/8080/p2p/12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X --remote-peer-id 12D3KooWH3uVF6wv47WnArKHk5p6cvgCJEb74UTmxztmQDc298L3")


if __name__ == '__main__':
from mininet.net import Mininet
from mininet.log import setLogLevel
Expand Down

0 comments on commit e19ddf0

Please sign in to comment.