Skip to content

Commit fb94f19

Browse files
authored
fix(common): set URL scheme to 'np' in commonTCPLoop and commonUDPLoop
1 parent 91ef157 commit fb94f19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ func (c *Common) commonTCPLoop() {
694694

695695
// 构建并发送启动URL到客户端
696696
launchURL := &url.URL{
697+
Scheme: "np",
697698
Host: targetConn.RemoteAddr().String(),
698699
Path: id,
699700
Fragment: "1", // TCP模式
@@ -827,6 +828,7 @@ func (c *Common) commonUDPLoop() {
827828

828829
// 构建并发送启动URL到客户端
829830
launchURL := &url.URL{
831+
Scheme: "np",
830832
Host: clientAddr.String(),
831833
Path: id,
832834
Fragment: "2", // UDP模式

0 commit comments

Comments
 (0)