Skip to content

Commit

Permalink
Update stealer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cherrychip8293 authored Aug 18, 2024
1 parent cedde54 commit 80449a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stealer/stealer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ func handleConn(serverAddress string, src oauth2.TokenSource) {

fmt.Printf("Connecting to %s... (may take up to 5 minutes) \n", serverAddress)

serverConn, err = minecraft.Dialer{
// Use default values or configuration for the Dialer
dialer := minecraft.Dialer{
TokenSource: src,
}.DialContext(ctx, "raknet", serverAddress)
// Optionally set other configurations here if needed
}

serverConn, err = dialer.DialContext(ctx, "raknet", serverAddress)
if err != nil {
panic(fmt.Errorf("error connecting to server: %w", err))
}
Expand Down

0 comments on commit 80449a9

Please sign in to comment.