Specify the port for generated whois URLs when requesting AS numbers.
#include "Store.h"
#include "StoreClient.h"
-#define WHOIS_PORT 43
#ifndef AS_REQBUF_SZ
#define AS_REQBUF_SZ 4096
#endif
{
AnyP::Uri whoisUrl(AnyP::PROTO_WHOIS);
whoisUrl.host(Config.as_whois_server);
+ whoisUrl.defaultPort();
SBuf asPath("/!gAS");
asPath.appendf("%d", as);
void port(unsigned short p) {port_=p; touch();}
unsigned short port() const {return port_;}
+ /// reset the port to the default port number for the current scheme
+ void defaultPort() { port(getScheme().defaultPort()); }
void path(const char *p) {path_=p; touch();}
void path(const SBuf &p) {path_=p; touch();}
#include <cerrno>
-#define WHOIS_PORT 43
-
class WhoisState
{
CBDATA_CLASS(WhoisState);