mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-07 00:23:44 +08:00
🐞 ;; Warning: ID mismatch: expected ID x, got y
When I ran the following code, I would get at least one of the above messages when run on the Linux CI container: ```bash for i in $(seq 1 32); do dig @localhost asdf +short & done ``` The error hasn't recurred after this change, in spite of running the above code a dozen times.
This commit is contained in:
@@ -13,9 +13,8 @@ func main() {
|
|||||||
log.Fatal(err.Error())
|
log.Fatal(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
query := make([]byte, 512)
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
query := make([]byte, 512)
|
||||||
_, addr, err := conn.ReadFromUDP(query)
|
_, addr, err := conn.ReadFromUDP(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
|
Reference in New Issue
Block a user