mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 10:28:13 -05:00
26 lines
500 B
Go
26 lines
500 B
Go
|
package hy
|
||
|
|
||
|
import (
|
||
|
"github.com/Yuzuki616/V2bX/api/panel"
|
||
|
"github.com/Yuzuki616/V2bX/conf"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestServer(t *testing.T) {
|
||
|
s := NewServer("test")
|
||
|
t.Log(s.runServer(&panel.NodeInfo{
|
||
|
Port: 11415,
|
||
|
UpMbps: 100,
|
||
|
DownMbps: 100,
|
||
|
HyObfs: "atresssdaaaadd",
|
||
|
}, &conf.ControllerConfig{
|
||
|
ListenIP: "127.0.0.1",
|
||
|
HyOptions: &conf.HyOptions{},
|
||
|
CertConfig: &conf.CertConfig{
|
||
|
CertFile: "../../test_data/1.pem",
|
||
|
KeyFile: "../../test_data/1.key",
|
||
|
},
|
||
|
}))
|
||
|
select {}
|
||
|
}
|