Skip to content

Commit

Permalink
Fix hardcoded IP
Browse files Browse the repository at this point in the history
  • Loading branch information
zig-for authored Jul 11, 2022
1 parent e213381 commit bc2100e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/snfm.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ static grpc::ChannelArguments GetChannelArgs()
class SNIConnection
{
public:
// this needs to be passed in
//SNIConnection(const std::string& address = "localhost:8191") // "172.27.16.1:8191"
SNIConnection(const std::string& address = "172.27.16.1:8191") // "172.27.16.1:8191"
SNIConnection(const std::string& address = "localhost:8191") // "172.27.16.1:8191"
: channel_{ grpc::CreateCustomChannel(address, grpc::InsecureChannelCredentials(), GetChannelArgs()) }, devices_stub_{ Devices::NewStub(channel_) }, filesystem_stub_{ DeviceFilesystem::NewStub(channel_) }
{

Expand Down Expand Up @@ -222,4 +220,4 @@ class SNIConnection
std::unique_ptr<DeviceFilesystem::Stub> filesystem_stub_;

std::vector<DevicesResponse::Device> devices_;
};
};

0 comments on commit bc2100e

Please sign in to comment.