diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 19:24:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 19:24:38 +0900 |
| commit | 0da2468d6b4ed4ef9f96cd3d50aa6e02da863da0 (patch) | |
| tree | 4790558d314e6ceb774a095e8144f20480017084 /src/Peer.cc | |
| parent | 2e5d9b056f2cf398d8996d93a4c7fbc1fbe66221 (diff) | |
Removed strappend
Diffstat (limited to 'src/Peer.cc')
| -rw-r--r-- | src/Peer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Peer.cc b/src/Peer.cc index 0423bfeb..fc690cc9 100644 --- a/src/Peer.cc +++ b/src/Peer.cc @@ -50,6 +50,7 @@ namespace aria2 { Peer::Peer(std::string ipaddr, uint16_t port, bool incoming): ipaddr_(ipaddr), port_(port), + id_(fmt("%s(%u)", ipaddr_.c_str(), port_)), firstContactTime_(global::wallclock()), badConditionStartTime_(0), seeder_(false), @@ -60,8 +61,6 @@ Peer::Peer(std::string ipaddr, uint16_t port, bool incoming): { memset(peerId_, 0, PEER_ID_LENGTH); resetStatus(); - id_ = ipaddr_; - strappend(id_, A2STR::COLON_C, util::uitos(port_)); } Peer::~Peer() |
