mirror of https://github.com/dnomd343/XProxy.git
dnomd343
2 years ago
4 changed files with 32 additions and 18 deletions
@ -1,3 +1,13 @@ |
|||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= |
|||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= |
|||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= |
|||
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= |
|||
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= |
|||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= |
|||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= |
|||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= |
|||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= |
|||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= |
|||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= |
|||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= |
|||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= |
|||
|
@ -1,26 +1,16 @@ |
|||
package main |
|||
|
|||
import ( |
|||
"fmt" |
|||
log "github.com/sirupsen/logrus" |
|||
"os" |
|||
) |
|||
|
|||
func main() { |
|||
fmt.Println("XProxy start") |
|||
log.SetLevel(log.DebugLevel) |
|||
log.Warning("XProxy start") |
|||
content, err := os.ReadFile("test.yml") |
|||
if err != nil { |
|||
panic(err) |
|||
} |
|||
loadConfig(content) |
|||
fmt.Println("DNS ->", dnsServer) |
|||
fmt.Println("v4Bypass ->", v4Bypass) |
|||
fmt.Println("v6Bypass ->", v6Bypass) |
|||
|
|||
fmt.Println("v4Gateway ->", v4Gateway) |
|||
fmt.Println("v4Address ->", v4Address) |
|||
fmt.Println("v6Gateway ->", v6Gateway) |
|||
fmt.Println("v6Address ->", v6Address) |
|||
|
|||
fmt.Println("v4Forward ->", v4Forward) |
|||
fmt.Println("v6Forward ->", v6Forward) |
|||
} |
|||
|
Loading…
Reference in new issue