diff --git a/gui/src/components/modalSetting.vue b/gui/src/components/modalSetting.vue
index 4a776dae..4e47cc11 100644
--- a/gui/src/components/modalSetting.vue
+++ b/gui/src/components/modalSetting.vue
@@ -70,13 +70,6 @@
$t("setting.options.sameAsPacMode")
}}
-
- {{ $t("egressPortWhitelist.title") }}
-
{
- handleResponse(res, this, () => {
- if (res.data.data.tcp === null && res.data.data.udp === null) {
- this.$axios({
- url: apiRoot + "/portWhiteList",
- method: "post",
- data: {
- requestPort: this.v2rayaPort.toString()
- }
- });
- }
- });
- });
},
methods: {
dayjs() {
@@ -598,42 +574,7 @@ export default {
return;
}
console.log(apiRoot);
- if (
- this.transparent !== "close" &&
- this.transparentType === "tproxy" &&
- !isIntranet(apiRoot)
- ) {
- let U = parseURL(apiRoot);
- let port = U.port;
- if (!port) {
- port =
- U.protocol === "http" ? "80" : U.protocol === "https" ? "443" : "";
- }
- this.$axios({
- url: apiRoot + "/portWhiteList"
- })
- .then(res => {
- handleResponse(res, this, () => {
- this.$buefy.dialog.confirm({
- title: this.$t("common.message"),
- message: this.$t("setting.messages.confirmEgressPorts", {
- tcpPorts: res.data.data.tcp.join(", "),
- udpPorts: res.data.data.udp.join(", ")
- }),
- cancelText: this.$t("operations.cancel"),
- confirmText: this.$t("operations.confirm2"),
- type: "is-danger",
- onConfirm: () => this.requestUpdateSetting()
- });
- });
- })
- .catch(() => {
- //可能是服务端是老旧版本,没这个接口
- this.requestUpdateSetting();
- });
- } else {
- this.requestUpdateSetting();
- }
+ this.requestUpdateSetting();
},
handleClickConfigurePac() {
this.$buefy.modal.open({
@@ -651,14 +592,6 @@ export default {
canCancel: true
});
},
- handleClickPortWhiteList() {
- this.$buefy.modal.open({
- parent: this,
- component: modalPortWhiteList,
- hasModalCard: true,
- canCancel: true
- });
- },
handleClickDnsSetting() {
this.$buefy.modal.open({
parent: this,
diff --git a/service/core/iptables/tproxy.go b/service/core/iptables/tproxy.go
index d3701397..19ad21f6 100644
--- a/service/core/iptables/tproxy.go
+++ b/service/core/iptables/tproxy.go
@@ -45,7 +45,6 @@ iptables -w 2 -t mangle -N TP_RULE
iptables -w 2 -t mangle -I OUTPUT -j TP_OUT
iptables -w 2 -t mangle -I PREROUTING -j TP_PRE
-iptables -w 2 -t mangle -I OUTPUT -j TP_OUT
iptables -w 2 -t mangle -A TP_OUT -m mark --mark 0xff -j RETURN
iptables -w 2 -t mangle -A TP_OUT -p tcp -m addrtype --src-type LOCAL ! --dst-type LOCAL -j TP_RULE
@@ -91,7 +90,6 @@ ip6tables -w 2 -t mangle -N TP_RULE
ip6tables -w 2 -t mangle -I OUTPUT -j TP_OUT
ip6tables -w 2 -t mangle -I PREROUTING -j TP_PRE
-ip6tables -w 2 -t mangle -I OUTPUT -j TP_OUT
ip6tables -w 2 -t mangle -A TP_OUT -m mark --mark 0xff -j RETURN
ip6tables -w 2 -t mangle -A TP_OUT -p tcp -m addrtype --src-type LOCAL ! --dst-type LOCAL -j TP_RULE