fix: yum install failed for centos like.

This commit is contained in:
Daniel Ding
2022-11-19 11:59:53 +08:00
parent a6cfe7a56a
commit 8e4d541cfe
6 changed files with 56 additions and 53 deletions

View File

@@ -6,23 +6,23 @@ import (
func TestNewProxy(t *testing.T) {
obj := &Proxy{
Http: []*HttpProxy{
{
Listen: "0.0.0.0:80",
Cert: &Cert{
Dir: "/var/run",
Http: []*HttpProxy{
{
Listen: "0.0.0.0:80",
Cert: &Cert{
Dir: "/var/run",
},
},
},
},
Tcp: []*TcpProxy{
{
Listen:"0.0.0.0:22",
Target: []string{
"1.1.1.1:23",
"1.1.1.2:34",
Tcp: []*TcpProxy{
{
Listen: "0.0.0.0:22",
Target: []string{
"1.1.1.1:23",
"1.1.1.2:34",
},
},
},
},
}
obj.Correct()
}
}