From bc2100e2cecc11bc3bb8246c2a7dbddc216459e2 Mon Sep 17 00:00:00 2001 From: zig-for Date: Mon, 11 Jul 2022 12:18:40 -0700 Subject: [PATCH] Fix hardcoded IP --- include/snfm.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/snfm.h b/include/snfm.h index 25539cf..288c497 100644 --- a/include/snfm.h +++ b/include/snfm.h @@ -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_) } { @@ -222,4 +220,4 @@ class SNIConnection std::unique_ptr filesystem_stub_; std::vector devices_; -}; \ No newline at end of file +};