修复转发逻辑错误
This commit is contained in:
@@ -117,19 +117,19 @@ create_service() {
|
|||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
PROTO="tcp4to6"
|
PROTO="tcp4to6"
|
||||||
SOCAT_CMD="TCP-LISTEN:${LOCAL_PORT},reuseaddr,fork TCP6:${TARGET_IP}:${TARGET_PORT}"
|
SOCAT_CMD="TCP6-LISTEN:${LOCAL_PORT},reuseaddr,fork TCP:${TARGET_IP}:${TARGET_PORT}"
|
||||||
;;
|
;;
|
||||||
6)
|
6)
|
||||||
PROTO="tcp6to4"
|
PROTO="tcp6to4"
|
||||||
SOCAT_CMD="TCP6-LISTEN:${LOCAL_PORT},reuseaddr,fork TCP:${TARGET_IP}:${TARGET_PORT}"
|
SOCAT_CMD="TCP-LISTEN:${LOCAL_PORT},reuseaddr,fork TCP6:${TARGET_IP}:${TARGET_PORT}"
|
||||||
;;
|
;;
|
||||||
7)
|
7)
|
||||||
PROTO="udp4to6"
|
PROTO="udp4to6"
|
||||||
SOCAT_CMD="UDP-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP6:${TARGET_IP}:${TARGET_PORT}"
|
SOCAT_CMD="UDP6-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP4:${TARGET_IP}:${TARGET_PORT}"
|
||||||
;;
|
;;
|
||||||
8)
|
8)
|
||||||
PROTO="udp6to4"
|
PROTO="udp6to4"
|
||||||
SOCAT_CMD="UDP6-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP:${TARGET_IP}:${TARGET_PORT}"
|
SOCAT_CMD="UDP-LISTEN:${LOCAL_PORT},reuseaddr,fork UDP6:${TARGET_IP}:${TARGET_PORT}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user