Browse Source

fix: assets extract

v1.x.x
Dnomd343 2 years ago
parent
commit
1298d6dd40
  1. 2
      cmd/asset/asset.go
  2. 2
      cmd/xproxy.go

2
cmd/asset/asset.go

@ -13,7 +13,7 @@ func extractFile(archive string, geoFile string, targetDir string) { // extract
return return
} }
log.Infof("Extract asset file -> %s", filePath) log.Infof("Extract asset file -> %s", filePath)
common.RunCommand("tar", "xvf", archive, "./"+geoFile, "-C", targetDir) common.RunCommand("tar", "xf", archive, geoFile, "-C", targetDir)
} }
func Load(assetFile string, assetDir string) { func Load(assetFile string, assetDir string) {

2
cmd/xproxy.go

@ -15,7 +15,7 @@ import (
"strconv" "strconv"
) )
var version = "1.0.1" var version = "1.0.2"
var v4RouteTable = 104 var v4RouteTable = 104
var v6RouteTable = 106 var v6RouteTable = 106
var v4TProxyPort = 7288 var v4TProxyPort = 7288

Loading…
Cancel
Save