mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
* BOB.cpp : boost::lexical_cast -> std::stoi
This commit is contained in:
parent
c344e75701
commit
1cd415a3ae
1 changed files with 2 additions and 3 deletions
5
BOB.cpp
5
BOB.cpp
|
@ -1,5 +1,4 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "ClientContext.h"
|
#include "ClientContext.h"
|
||||||
#include "BOB.h"
|
#include "BOB.h"
|
||||||
|
@ -459,7 +458,7 @@ namespace client
|
||||||
void BOBCommandSession::OutportCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::OutportCommandHandler (const char * operand, size_t len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "BOB: outport ", operand);
|
LogPrint (eLogDebug, "BOB: outport ", operand);
|
||||||
m_OutPort = boost::lexical_cast<int>(operand);
|
m_OutPort = std::stoi(operand);
|
||||||
if (m_OutPort >= 0)
|
if (m_OutPort >= 0)
|
||||||
SendReplyOK ("outbound port set");
|
SendReplyOK ("outbound port set");
|
||||||
else
|
else
|
||||||
|
@ -476,7 +475,7 @@ namespace client
|
||||||
void BOBCommandSession::InportCommandHandler (const char * operand, size_t len)
|
void BOBCommandSession::InportCommandHandler (const char * operand, size_t len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "BOB: inport ", operand);
|
LogPrint (eLogDebug, "BOB: inport ", operand);
|
||||||
m_InPort = boost::lexical_cast<int>(operand);
|
m_InPort = std::stoi(operand);
|
||||||
if (m_InPort >= 0)
|
if (m_InPort >= 0)
|
||||||
SendReplyOK ("inbound port set");
|
SendReplyOK ("inbound port set");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue