aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/LAN.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-02-21 02:45:01 +0100
committerArisotura <thetotalworm@gmail.com>2019-02-21 02:45:01 +0100
commit023a1ba200009eb9f462625597b508cd4fffa0da (patch)
treefdacee5eac6837968bbeb9ca4e85137763563bc6 /src/libui_sdl/LAN.cpp
parent616f2b494b311862f89b769151cec774fcbffc15 (diff)
list adapters, display their info
Diffstat (limited to 'src/libui_sdl/LAN.cpp')
-rw-r--r--src/libui_sdl/LAN.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libui_sdl/LAN.cpp b/src/libui_sdl/LAN.cpp
index a738656..2021b3d 100644
--- a/src/libui_sdl/LAN.cpp
+++ b/src/libui_sdl/LAN.cpp
@@ -98,6 +98,9 @@ bool TryLoadPCap(void* lib)
bool Init()
{
+ // TODO: how to deal with cases where an adapter is unplugged or changes config??
+ if (PCapLib) return true;
+
PCapLib = NULL;
PCapAdapter = NULL;
PCapPacketLen = 0;