mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 09:48:46 +00:00
Revert "Prevent forwarding to privileged ports"
This reverts commit da00526ec1
.
Refs #345
This commit is contained in:
parent
da00526ec1
commit
f6f0f62688
2 changed files with 0 additions and 9 deletions
|
@ -49,11 +49,6 @@ public class ActivityForwardApproval extends Activity {
|
|||
final int ruid = getIntent().getIntExtra("ruid", 0);
|
||||
final String raddr = (addr == null ? "127.0.0.1" : addr);
|
||||
|
||||
if (rport < 1024) {
|
||||
Log.w(TAG, "Port forwarding to privileged port not possible");
|
||||
finish();
|
||||
}
|
||||
|
||||
String pname;
|
||||
if (protocol == 6)
|
||||
pname = getString(R.string.menu_protocol_tcp);
|
||||
|
|
|
@ -194,10 +194,6 @@ public class ActivityForwarding extends AppCompatActivity {
|
|||
final String raddr = etRAddr.getText().toString();
|
||||
final int rport = Integer.parseInt(etRPort.getText().toString());
|
||||
final int ruid = ((Rule) spRuid.getSelectedItem()).info.applicationInfo.uid;
|
||||
|
||||
if (rport < 1024)
|
||||
throw new IllegalArgumentException("Port forwarding to privileged port not possible");
|
||||
|
||||
new AsyncTask<Object, Object, Throwable>() {
|
||||
@Override
|
||||
protected Throwable doInBackground(Object... objects) {
|
||||
|
|
Loading…
Reference in a new issue