change project structure, fix online ip report bug

This commit is contained in:
yuzuki999
2022-08-16 13:04:33 +08:00
parent ca180a63c9
commit 27b97927c1
41 changed files with 121 additions and 152 deletions

View File

@@ -1,14 +1,13 @@
package node_test
import (
"github.com/Yuzuki616/V2bX/api/panel"
. "github.com/Yuzuki616/V2bX/node"
"testing"
"github.com/Yuzuki616/V2bX/api"
)
func TestBuildV2ray(t *testing.T) {
nodeInfo := &api.NodeInfo{
nodeInfo := &panel.NodeInfo{
NodeType: "V2ray",
NodeID: 1,
Port: 1145,
@@ -36,7 +35,7 @@ func TestBuildV2ray(t *testing.T) {
}
func TestBuildTrojan(t *testing.T) {
nodeInfo := &api.NodeInfo{
nodeInfo := &panel.NodeInfo{
NodeType: "Trojan",
NodeID: 1,
Port: 1145,
@@ -68,7 +67,7 @@ func TestBuildTrojan(t *testing.T) {
}
func TestBuildSS(t *testing.T) {
nodeInfo := &api.NodeInfo{
nodeInfo := &panel.NodeInfo{
NodeType: "Shadowsocks",
NodeID: 1,
Port: 1145,