Replies: 2 comments 3 replies
-
chatgpt seemed to have a coherent and decent strategy, albeit i'm not sure how it would work with UDP vs TCP: https://chatgpt.com/share/9feef185-8469-45f3-96bf-ce76c8a6dfcc |
Beta Was this translation helpful? Give feedback.
0 replies
-
oh man, this is actually pretty great. no proxy needed! just a background script using tcpdump! check_udp_traffic() {
# Capture packets for a short period and count them
local packet_count
packet_count=$(echo $(timeout 30 tcpdump -c 1 -i any udp port 2456 2>/dev/null) | grep UDP | wc -l)
if [ "$packet_count" -gt 0 ]; then
return 0 # Traffic detected
else
return 1 # No traffic
fi
} i had no idea tcpdump was so rad. i adapted some the chatgpt stuff into this script and tested it--works great! is some integration like this something you'd be willing to consider? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
problem
the container burns a lot of cpu idling, even if no one is playing
discussion
outcome: mo' betta use of resources!
Beta Was this translation helpful? Give feedback.
All reactions