[socks5] Fix javadoc of getLocalStreamHost()

The method does no longer return null.

Reported-by: Simon Abykov <simon.abykov@gmail.com>
This commit is contained in:
Florian Schmaus 2021-09-13 18:23:59 +02:00
parent 8ae5ef1f51
commit 09710b3203
1 changed files with 2 additions and 3 deletions

View File

@ -652,10 +652,9 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns the stream host information of the local SOCKS5 proxy containing the IP address and
* the port or null if local SOCKS5 proxy is not running.
* the port. The returned list may be empty if the local SOCKS5 proxy is not running.
*
* @return the stream host information of the local SOCKS5 proxy or null if local SOCKS5 proxy
* is not running
* @return the stream host information of the local SOCKS5 proxy
*/
public List<StreamHost> getLocalStreamHost() {
// Ensure that the local SOCKS5 proxy is running (if enabled).