Skip to content

Commit

Permalink
remove netif from rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemeowx2 committed Aug 30, 2019
1 parent db4ef23 commit 4000bff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/rpc/lan-play.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ enum class LanPlayStatus {
struct LanPlayConfig {
std::string relayServer;
std::string socks5Server;
std::string netif;
bool fakeInternet;
bool broadcast;
int pmtu;
Expand Down
4 changes: 0 additions & 4 deletions src/rpc/rpc-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ std::string getConfig(std::string prefix, const LanPlayConfig &config) {
std::string out;

out += "[" + prefix + "]\n";
out += kv("netif", config.netif);
out += kv("relayServer", config.relayServer);
out += kv("socks5Server", config.socks5Server);
out += kv("pmtu", config.pmtu);
Expand Down Expand Up @@ -139,9 +138,6 @@ std::string RPCServerSession::onMessage(std::string message) {
out = getConfig(lanPlay.config);
} else if (key == "lastConfig") {
out = getConfig("lastConfig", lanPlay.getLastConfig());
} else if (key == "netif") {
lanPlay.config.netif = value;
out = getConfig(lanPlay.config);
} else if (key == "relayServer") {
lanPlay.config.relayServer = value;
out = getConfig(lanPlay.config);
Expand Down

0 comments on commit 4000bff

Please sign in to comment.