Skip to content

Commit e4f1f31

Browse files
authored
Fix Python PortForwarder module (wpilibsuite#2623)
1 parent eb394ec commit e4f1f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/docs/networking/networking-utilities/portforwarding.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Often teams may wish to connect directly to the roboRIO for controlling their ro
2525

2626
.. code-block:: python
2727
28-
wpiutil.PortForwarder.getInstance().add(8888, "wpilibpi.local", 80)
28+
wpinet.PortForwarder.getInstance().add(8888, "wpilibpi.local", 80)
2929
3030
.. important:: You **can not** use a port less than 1024 as your local forwarded port. It is also important to note that you **can not** use full URLs (``http://wpilibpi.local``) and should only use IP Addresses or DNS names.
3131

@@ -51,4 +51,4 @@ To stop forwarding on a specified port, simply call ``remove(int port)`` with po
5151

5252
.. code-block:: python
5353
54-
wpiutil.PortForwarder.getInstance().remove(8888)
54+
wpinet.PortForwarder.getInstance().remove(8888)

0 commit comments

Comments
 (0)