Skip to content

Fix module/variable shadowing #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ Then, connect to the running cjdns instance. There are two ways to do this. The

.. code:: python

cjdns = cjdns.connectWithAdminInfo()
connection = cjdns.connectWithAdminInfo()

Or, if you have the IP, port and password and wish to ignore the ``~/.cjdnsadmin`` file for whatever reason:

.. code:: python

cjdns = cjdns.connect(ip, port, password)
connection = cjdns.connect(ip, port, password)

Once connected, you may call any of the `cjdns admin interface functions <https://github.com/cjdelisle/cjdns/blob/master/admin/README.md#cjdns-functions>`_:

.. code:: python

peerStats = cjdns.InterfaceController_peerStats()
peerStats = connection.InterfaceController_peerStats()

Finally, there is a helper function that allows one to convert a cjdns public key into an IP address:

Expand Down