orvice / v2ray-manager

MIT License
21 stars 18 forks source link

Information on how to use? #1

Closed iMiMx closed 6 years ago

iMiMx commented 6 years ago

Hi there,

I'm interesting in trying this - is there any information on how to use this with v2ray? If I try checking out the source, then 'go run master.go', i get some errors about non-main?

Presumably I have to do something else?

Thanks,

iMiMx commented 6 years ago

So, I need to build a package I believe, tried the below:

root@ce-101-gslb:~# /usr/lib/go/bin/go build -o bin/v2ray-manager  github.com/orvice/v2ray-manager
root@ce-101-gslb:~# ls bin/
v2ray-manager

End up with a binary, but:

root@ce-101-gslb:~# chmod +x bin/v2ray-manager
root@ce-101-gslb:~# bin/v2ray-manager
bin/v2ray-manager: line 1: syntax error near unexpected token `newline'
bin/v2ray-manager: line 1: `!<arch>'
orvice commented 6 years ago

Hi,

please checkout this project: https://github.com/orvice/v2ray-mu

v2ray-manger is a lib, cant build as a binary

iMiMx commented 6 years ago

Hi there,

Thank you for taking the time to reply - my apologies for lack of experience with this :)

I now have vray-mu compiled and it is run-able from the shell, can it be used as a stand alone CLI tool? If so is there a list of arguments somewhere? It looks like it is really meant for ss-panel, in a docker container?

Much obliged.

orvice commented 6 years ago

v2ray-mu cant used as a stand alone cli tool, its for ss-panel mu api.