Skip to content

Commit

Permalink
update default v2ray docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Feb 3, 2020
1 parent e3a8e4f commit 1f51cfd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
dist/
dist/
.idea/
4 changes: 3 additions & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
app := cli.NewApp()
app.Name = "v2scar"
app.Usage = "sidecar for V2ray"
app.Version = "0.0.3"
app.Version = "0.0.9"
app.Author = "Ehco1996"

app.Flags = []cli.Flag{
Expand Down Expand Up @@ -46,6 +46,8 @@ func main() {

app.Action = func(c *cli.Context) error {
up := v2scar.NewUserPool()
log.Println("Waitting v2ray start...")
time.Sleep(time.Second * 3)
tick := time.Tick(time.Duration(SYNC_TIME) * time.Second)
for {
go v2scar.SyncTask(up)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
v2ray:
image: v2ray/official:latest
image: v2fly/v2fly-core:latest
container_name: v2ray
restart: always
volumes:
Expand Down
4 changes: 1 addition & 3 deletions v2ray-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
}
],
"log": {
"loglevel": "warning",
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log"
"loglevel": "debug"
},
"outbound": {
"protocol": "freedom",
Expand Down

0 comments on commit 1f51cfd

Please # to comment.