vmessping

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 36 Imported by: 3

README

vmessping

Build Status

A ping prober for vmess:// link in V2rayN/NG/Shadowrocket formats.

./vmessping vmess://....
Usage of ./vmessping:
  -c uint
        Count. Stop after sending COUNT requests (default 9999)
  -dest string
        the test destination url, need 204 for success return (default "http://www.google.com/gen_204")
  -i uint
        inteval seconds between pings (default 1)
  -o uint
        timeout seconds for each request (default 10)
  -v    verbose (debug log)

Example

./vmessping -c 3 vmess://12345678.......

Vmessping [0.0.0-src] Yet another distribution of v2ray (v2ray-core: 4.21.3)
PING  tcp|my.server.domian|4321  (ps/name)

2019/12/20 15:56:09 Get http://www.google.com/gen_204: net/http: request canceled ...
Ping http://www.google.com/gen_204: seq=1 time=-1 ms
Ping http://www.google.com/gen_204: seq=2 time=490 ms
Ping http://www.google.com/gen_204: seq=3 time=396 ms

--- http://www.google.com/gen_204 vmess ping statistics ---
3 requests made, 2 success, time 6.886747334s
rtt min/avg/max = 396/443.00/490 ms

Compile from source

go get -v github.com/v2fly/vmessping/vmessping/...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeasureDelay

func MeasureDelay(inst *core.Instance, timeout time.Duration, dest string) (int64, error)

func Ping

func Ping(vmess string, count uint, dest string, timeoutsec, inteval uint, verbose bool) (int, error)

func PrintVersion

func PrintVersion(mv string)

func StartV2Ray

func StartV2Ray(vm string, verbose bool) (*core.Instance, error)

func Vmess2Outbound added in v0.0.8

func Vmess2Outbound(v *vmess.VmessLink) (*core.OutboundHandlerConfig, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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