Skip to content

Commit

Permalink
2024-08-07 12:22:28
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Aug 7, 2024
1 parent 7d016a2 commit d9da58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/daze/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func main() {
doa.Nil(locale.Run())
case "czar":
client := czar.NewClient(*flServer, *flCipher)
defer client.Close()
locale := daze.NewLocale(*flListen, daze.NewAimbot(client, &daze.AimbotOption{
Type: *flFilter,
Rule: *flRulels,
Expand Down
4 changes: 4 additions & 0 deletions protocol/czar/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TestProtocolCzarTCP(t *testing.T) {
dazeServer.Run()

dazeClient := NewClient(DazeServerListenOn, Password)
defer dazeClient.Close()
ctx := &daze.Context{}
cli := doa.Try(dazeClient.Dial(ctx, "tcp", EchoServerListenOn))
defer cli.Close()
Expand All @@ -43,6 +44,7 @@ func TestProtocolCzarTCPClientClose(t *testing.T) {
dazeServer.Run()

dazeClient := NewClient(DazeServerListenOn, Password)
defer dazeClient.Close()
ctx := &daze.Context{}
cli := doa.Try(dazeClient.Dial(ctx, "tcp", EchoServerListenOn))
defer cli.Close()
Expand All @@ -65,6 +67,7 @@ func TestProtocolCzarTCPServerClose(t *testing.T) {
dazeServer.Run()

dazeClient := NewClient(DazeServerListenOn, Password)
defer dazeClient.Close()
ctx := &daze.Context{}
cli := doa.Try(dazeClient.Dial(ctx, "tcp", EchoServerListenOn))
defer cli.Close()
Expand All @@ -85,6 +88,7 @@ func TestProtocolCzarUDP(t *testing.T) {
dazeServer.Run()

dazeClient := NewClient(DazeServerListenOn, Password)
defer dazeClient.Close()
ctx := &daze.Context{}
cli := doa.Try(dazeClient.Dial(ctx, "udp", EchoServerListenOn))
defer cli.Close()
Expand Down

0 comments on commit d9da58a

Please sign in to comment.