Added -externalip and -discover

-externalip=<ip> can be used to explicitly set the public IP address
of your node. -discover=0 can be used to disable the automatic public
IP discovery system.
This commit is contained in:
Pieter Wuille
2012-02-19 20:44:35 +01:00
parent 39857190de
commit 19b6958cfd
3 changed files with 48 additions and 23 deletions

View File

@@ -49,6 +49,9 @@ enum
LOCAL_UPNP,
LOCAL_IRC,
LOCAL_HTTP,
LOCAL_MANUAL,
LOCAL_MAX
};
bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE);