mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-08 12:36:50 +03:00
chore: rename SOCKS5 outbound function/comments to generic SOCKS
This commit is contained in:
@@ -449,12 +449,12 @@ sing_box_cm_add_direct_outbound() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Add a SOCKS5 outbound to the outbounds section of a sing-box JSON configuration.
|
# Add a SOCKS outbound to the outbounds section of a sing-box JSON configuration.
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# config: JSON configuration (string)
|
# config: JSON configuration (string)
|
||||||
# tag: string, identifier for the outbound
|
# tag: string, identifier for the outbound
|
||||||
# server_address: string, IP address or hostname of the SOCKS5 server
|
# server_address: string, IP address or hostname of the SOCKS server
|
||||||
# server_port: number, port of the SOCKS5 server
|
# server_port: number, port of the SOCKS server
|
||||||
# version: string, optional SOCKS version
|
# version: string, optional SOCKS version
|
||||||
# username: string, optional username for authentication
|
# username: string, optional username for authentication
|
||||||
# password: string, optional password for authentication
|
# password: string, optional password for authentication
|
||||||
@@ -463,9 +463,9 @@ sing_box_cm_add_direct_outbound() {
|
|||||||
# Outputs:
|
# Outputs:
|
||||||
# Writes updated JSON configuration to stdout
|
# Writes updated JSON configuration to stdout
|
||||||
# Example:
|
# Example:
|
||||||
# CONFIG=$(sing_box_cm_add_socks5_outbound "$CONFIG" "socks5-out" "192.168.1.10" 1080)
|
# CONFIG=$(sing_box_cm_add_socks_outbound "$CONFIG" "socks5-out" "192.168.1.10" 1080)
|
||||||
#######################################
|
#######################################
|
||||||
sing_box_cm_add_socks5_outbound() {
|
sing_box_cm_add_socks_outbound() {
|
||||||
local config="$1"
|
local config="$1"
|
||||||
local tag="$2"
|
local tag="$2"
|
||||||
local server_address="$3"
|
local server_address="$3"
|
||||||
|
|||||||
Reference in New Issue
Block a user