summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSönke Holz <sholz8530@gmail.com>2021-08-07 02:17:02 +0200
committerSönke Holz <sholz8530@gmail.com>2021-08-07 02:17:02 +0200
commitdd5c41b5a600764b029617520c737b94a58f6b70 (patch)
tree4ba517dfb5a17ed9378c1ed1c816462b67bf36c8 /src
parentnetwork: fix fcntl cmds (diff)
downloadyuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar.gz
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar.bz2
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar.lz
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar.xz
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.tar.zst
yuzu-dd5c41b5a600764b029617520c737b94a58f6b70.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index e742db48f..5ef574d20 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -354,10 +354,13 @@ private:
static_assert(sizeof(IpConfigInfo) == sizeof(IpAddressSetting) + sizeof(DnsSetting),
"IpConfigInfo has incorrect size.");
+ const auto [ipv4, error] = Network::GetHostIPv4Address();
+ ASSERT_MSG(error == Network::Errno::SUCCESS, "Couldn't get host IPv4 address");
+
const IpConfigInfo ip_config_info{
.ip_address_setting{
.is_automatic{true},
- .current_address{192, 168, 1, 100},
+ .current_address{ipv4},
.subnet_mask{255, 255, 255, 0},
.gateway{192, 168, 1, 1},
},