Merge "Fix to delete iptables rule while unsetting restrictions" into tizen submit/tizen/20200520.034654
authorhyunuk tak <hyunuk.tak@samsung.com>
Wed, 20 May 2020 03:46:26 +0000 (03:46 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 20 May 2020 03:46:26 +0000 (03:46 +0000)
plugin/monitor/stc-plugin-monitor-rstn.c

index b985baf..5398c1d 100755 (executable)
@@ -622,10 +622,10 @@ static void __rstn_process(enum traffic_restriction_type rstn_type,
                int i;
 
                if (rstn_data->classid == STC_TETHERING_APP_CLASSID)
-                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_BLOCK,
+                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_TETH_BLOCK,
                                            rstn_data->iftype);
                else
-                       __rstn_del_ipt_rule(rstn_data->classid, rstn_data->rstn_type,
+                       __rstn_del_ipt_rule(rstn_data->classid, NFACCT_BLOCK,
                                            rstn_data->iftype);
 
                rstn_data->rstn_state = STC_RSTN_STATE_DEACTIVATED;