diff options
Diffstat (limited to 'lib/common.c')
-rw-r--r-- | lib/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.c b/lib/common.c index 8a0e9ac..9207083 100644 --- a/lib/common.c +++ b/lib/common.c @@ -1443,7 +1443,7 @@ const char* getMacOf(const char* device) int s; s = socket(AF_INET, SOCK_DGRAM, 0); - strcpy(ifr.ifr_name, "eth0"); + strcpy(ifr.ifr_name, device); ioctl(s, SIOCGIFHWADDR, &ifr); for (int i = 0; i < macTuppel; i++) |