proxypool

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package proxypool fetches and parses outbound proxy lists for the proxy-pool egress: free public lists or a manually-entered set, one "scheme://[user:pass@]host:port" per line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(ctx context.Context, rawURL string) ([]string, error)

Fetch downloads a proxy-list URL and returns its non-empty lines. The URL is SSRF-validated (https only, no private/metadata addresses) before any request.

func Parse

func Parse(lines []string) []model.ProxyEndpoint

Parse turns proxy lines into endpoints, skipping blanks/comments/dupes and unsupported schemes (socks4 — Xray has no socks4 outbound).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL