nordVpn

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: OSL-3.0 Imports: 6 Imported by: 0

README

nordVpn

curl `
--proxy https://USERNAME:PASSWORD@pl128.nordvpn.com:89 `
--proxy-ca-native `
ip.smartproxy.com/json

technology

{1 ikev2}
{3 openvpn_udp}
{5 openvpn_tcp}
{7 socks}
{15 openvpn_xor_udp}
{17 openvpn_xor_tcp}
{21 proxy_ssl}
{23 proxy_ssl_cybersec}
{35 wireguard_udp}
{42 openvpn_dedicated_udp}
{45 openvpn_dedicated_tcp}
{51 nordwhisper}

NordVPN proxy setup for qBittorrent

https://support.nordvpn.com/hc/en-us/articles/20195967385745

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		log.Println(req.Method, req.URL)
		return http.ProxyFromEnvironment(req)
	},
}

Functions

func FormatProxy

func FormatProxy(username, password, hostname string) string

Types

type Server

type Server struct {
	Hostname     string
	Status       string
	Technologies []struct {
		Identifier string
	}
	Locations []struct {
		Country struct {
			City struct {
				DnsName string `json:"dns_name"`
			}
			Code string
		}
	}
}

func GetServers

func GetServers(limit int) ([]Server, error)

limit <= -1 for default limit == 0 for all

type ServerLoad

type ServerLoad struct {
	Count    int
	Country  string
	City     string
	Hostname string
}

type ServerLoads

type ServerLoads []*ServerLoad

func GetServerLoads

func GetServerLoads(servers []Server) ServerLoads

func (ServerLoads) Country

func (s ServerLoads) Country(code string) (string, bool)

func (ServerLoads) Marshal

func (s ServerLoads) Marshal() ([]byte, error)

func (*ServerLoads) Unmarshal

func (s *ServerLoads) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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