reduce superfluous export

This commit is contained in:
cuteist 2023-06-15 15:48:55 +08:00 committed by zizifn
parent a9093efc8b
commit 319f11484f

View File

@ -583,7 +583,7 @@ async function handleDNSQuery(udpChunk, webSocket, vlessResponseHeader, log) {
* @param {string} addressRemote
* @param {number} portRemote
*/
export async function socks5Connect(addressType, addressRemote, portRemote) {
async function socks5Connect(addressType, addressRemote, portRemote) {
const [port, hostname, password, username] = parseSocks5Address(socks5Address).reverse();
// Connect to the SOCKS server
const socket = connect({
@ -710,7 +710,7 @@ export async function socks5Connect(addressType, addressRemote, portRemote) {
*
* @param {string} address
*/
export function parseSocks5Address(address) {
function parseSocks5Address(address) {
if (address && address.includes(':')) {
return address.split('@').flatMap(x => x.split(':'))
}