diff options
| author | Pieter Wuille <[email protected]> | 2012-05-30 22:44:23 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-06-14 17:37:15 +0200 |
| commit | 1e8aeae15a300eca107752d6ef52fa0f5c2410c3 (patch) | |
| tree | b9c8e59dc0756bfb386ddb82b20a4648c0216c6e /src/netbase.h | |
| parent | Merge pull request #1459 from laanwj/2012_06_trayiconmenu (diff) | |
| download | discoin-1e8aeae15a300eca107752d6ef52fa0f5c2410c3.tar.xz discoin-1e8aeae15a300eca107752d6ef52fa0f5c2410c3.zip | |
Improve parsing of IPv6 addresses
Implement the following rules:
* Interpret [X]:Y as host=X port=Y, if Y is an integer
* Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon
* Interpret X:Y as host=X:Y port=default otherwise
Diffstat (limited to 'src/netbase.h')
| -rw-r--r-- | src/netbase.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index 0f6fc9b49..878ac986b 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -133,6 +133,7 @@ class CService : public CNetAddr }; enum Network ParseNetwork(std::string net); +void SplitHostPort(std::string in, int &portOut, std::string &hostOut); bool SetProxy(enum Network net, CService addrProxy, int nSocksVersion = 5); bool GetProxy(enum Network net, CService &addrProxy); bool IsProxy(const CNetAddr &addr); |