mirror of
https://github.com/luscis/openlan.git
synced 2025-10-10 02:50:08 +08:00
fix: yum install failed for centos like.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user