Skip to content

ariadata/singproxy

Repository files navigation

singproxy

Go library for dialing through many proxy URL schemes (VLESS, Trojan, VMess, …), built on sing-box.

Module: github.com/ariadata/singproxy

Install

go get github.com/ariadata/singproxy@v1.0.0
import "github.com/ariadata/singproxy"

proxy, err := singproxy.FromURL(timeout, proxyURL)

Build tags

-tags=with_utls,with_quic,with_wireguard

Offline vendor

This repo commits vendor/ for offline-friendly builds:

make vendor   # needs network
make build    # -mod=vendor
make test

Basic usage

package main

import (
	"fmt"
	"time"

	"github.com/ariadata/singproxy"
)

func main() {
	proxy, err := singproxy.FromURL(8*time.Second, "vless://…")
	if err != nil {
		panic(err)
	}
	fmt.Println(proxy.String())
}

Release

git tag -a v1.0.0 -m "v1.0.0"
git push origin main --tags

License

MIT — free to use, modify, and distribute.

Credits

About

A high-level Golang library designed to simplify connecting through some proxy protocols.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors