Skip to content

Commit

Permalink
Accepting address in command line, for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Nov 15, 2014
1 parent da8b00a commit 98a94a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/capture_comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ const string CRYPTO_CIPHER = "aes-128-cbc";

class DumpComm
{
string host_;
unsigned short port_;
PublicChannel<> public_channel_;
mutex private_channel_mutex_;
shared_ptr<PrivateChannel<>> private_channel_;
Expand Down Expand Up @@ -149,8 +147,6 @@ class DumpComm
public:
DumpComm (string const& host,
unsigned short port) :
host_ (host),
port_ (port),
public_channel_ (host, port),
private_channel_mutex_(),
private_channel_()
Expand Down Expand Up @@ -199,6 +195,10 @@ int
main (int argc,
char** argv)
{
DumpComm comm ("10.255.255.255", 6666);
string host = "10.255.255.255";
if (argc > 1) {
host = argv[1];
}
DumpComm comm (host, 6666);
comm.run();
}

0 comments on commit 98a94a9

Please sign in to comment.