Skip to content

Commit

Permalink
Removed problem with asio IPv6 address.
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePad64 committed Mar 27, 2013
1 parent 2682ec2 commit 05e86ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/net/UDPTransportSocketEndpoint.cpp
Expand Up @@ -41,7 +41,7 @@ std::string UDPTransportSocketEndpoint::getIP() const {
return this->asio_endpoint.address().to_string();
};
void UDPTransportSocketEndpoint::setIP(const std::string& ip){
this->asio_endpoint.address(address::from_string(ip));
this->asio_endpoint.address(address::from_string(ip.substr(0,ip.find('%'))));
};

UDPTransportSocketEndpoint::port_t UDPTransportSocketEndpoint::getPort() const {
Expand Down

0 comments on commit 05e86ef

Please sign in to comment.