mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-04 01:39:24 +00:00
Fixed parse_address_list()
This commit is contained in:
parent
2f08a35ac7
commit
c4d3f6f8b4
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::parse_address_list(const std::str
|
|||
|
||||
for (size_t k1 = 0;; ++k1) {
|
||||
const size_t next_k1 = address_list.find_first_of(',', k1);
|
||||
address = address_list.substr(k1, next_k1);
|
||||
address = address_list.substr(k1, next_k1 - k1);
|
||||
k1 = next_k1;
|
||||
|
||||
const size_t k2 = address.find_last_of(':');
|
||||
|
|
Loading…
Reference in a new issue