Skip to content

Commit

Permalink
Fix Python PortForwarder module (wpilibsuite#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek authored Mar 31, 2024
1 parent eb394ec commit e4f1f31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Often teams may wish to connect directly to the roboRIO for controlling their ro

.. code-block:: python
wpiutil.PortForwarder.getInstance().add(8888, "wpilibpi.local", 80)
wpinet.PortForwarder.getInstance().add(8888, "wpilibpi.local", 80)
.. 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.

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

.. code-block:: python
wpiutil.PortForwarder.getInstance().remove(8888)
wpinet.PortForwarder.getInstance().remove(8888)

0 comments on commit e4f1f31

Please sign in to comment.