Skip to content

Commit

Permalink
Update app/modules/net.c
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Stör <marcelstoer@users.noreply.github.com>
  • Loading branch information
vsky279 and marcelstoer authored Sep 1, 2020
1 parent 9f7c62f commit 9031909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ field_from_ipaddr(lua_State *L, const char * field_name, ip_addr_t* addr) {

static int net_ifinfo( lua_State* L ) {
int ifidx = luaL_optint(L, 1, 0);
if (ifidx!=0x00 && ifidx!=0x01) {
if (ifidx != 0 && ifidx != 1) {
return 0;
}

Expand Down

0 comments on commit 9031909

Please sign in to comment.