mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
net: mark netadapter IP as sensitive option (#312)
## Link to GitHub Issue, if one exists n/a ## Description of change Mark the option as "sensitive" which censors the option value (adapter's IP address) Remove the log entry from spice This isn't perfect because most of the games like to log the IP address and subnet anyway, but at least spice itself will stop doing it. ## Testing Tested 64 bit LDJ with parameter set.
This commit is contained in:
@@ -179,7 +179,7 @@ void networkhook_init() {
|
||||
strncpy(s_prefix, inet_ntoa(prefix), 16);
|
||||
|
||||
// log preferences
|
||||
log_info("network", "Network preferences: {}", s_network, s_subnet, s_prefix);
|
||||
// log_info("network", "Network preferences: {}, {}, {}", s_network, s_subnet, s_prefix);
|
||||
|
||||
// GetAdaptersInfo hook
|
||||
auto orig_addr = detour::iat_try(
|
||||
|
||||
@@ -306,6 +306,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
"Force the use of an adapter with the specified network. Must also provide -subnet",
|
||||
.type = OptionType::Text,
|
||||
.category = "Network Adapters",
|
||||
.sensitive = true,
|
||||
},
|
||||
{
|
||||
.title = "Preferred NetAdapter Subnet",
|
||||
|
||||
Reference in New Issue
Block a user