mirror of
https://github.com/bol-van/zapret2.git
synced 2026-06-17 12:50:04 +04:00
nfqws2: minor optimize
This commit is contained in:
+2
-2
@@ -1212,8 +1212,8 @@ static bool play_prolog(
|
||||
return false;
|
||||
ps->bReverseFixed = ps->bReverse ^ params.server;
|
||||
setup_direction(dis, ps->bReverseFixed, &ps->src, &ps->dst, &ps->sdip4, &ps->sdip6, &ps->sdport);
|
||||
ifname = ps->bReverseFixed ? ifin : ifout;
|
||||
#ifdef HAS_FILTER_SSID
|
||||
ifname = ps->bReverseFixed ? ifin : ifout;
|
||||
ps->ssid = wlan_ssid_search_ifname(ifname);
|
||||
if (ps->ssid) DLOG("found ssid for %s : %s\n", ifname, ps->ssid);
|
||||
#endif
|
||||
@@ -1248,8 +1248,8 @@ static bool play_prolog(
|
||||
// in absence of conntrack guess direction by presence of interface names. won't work on BSD
|
||||
ps->bReverseFixed = ps->ctrack ? (ps->bReverse ^ params.server) : (ps->bReverse = ifin && *ifin && (!ifout || !*ifout));
|
||||
setup_direction(dis, ps->bReverseFixed, &ps->src, &ps->dst, &ps->sdip4, &ps->sdip6, &ps->sdport);
|
||||
ifname = ps->bReverseFixed ? ifin : ifout;
|
||||
#ifdef HAS_FILTER_SSID
|
||||
ifname = ps->bReverseFixed ? ifin : ifout;
|
||||
ps->ssid = wlan_ssid_search_ifname(ifname);
|
||||
if (ps->ssid) DLOG("found ssid for %s : %s\n", ifname, ps->ssid);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user