Skip to content
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
4 changes: 2 additions & 2 deletions sshtunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ class SSHTunnelForwarder(object):
the tuple are optional so both ``('', 8000)`` and
``('10.0.0.1', )`` are valid values

Default: ``('0.0.0.0', RANDOM_PORT)``
Default: ``('127.0.0.1', RANDOM_PORT)``

.. versionchanged:: 0.0.8
Added the ability to use a UNIX domain socket as local bind
Expand Down Expand Up @@ -1127,7 +1127,7 @@ def _consolidate_binds(local_binds, remote_binds):
if count < 0:
raise ValueError('Too many local bind addresses '
'(local_bind_addresses > remote_bind_addresses)')
local_binds.extend([('0.0.0.0', 0) for x in range(count)])
local_binds.extend([('127.0.0.1', 0) for x in range(count)])
return local_binds

@staticmethod
Expand Down