Commit Graph

58 Commits

Author SHA1 Message Date
Maxi Quoß
4bfc0576ee fix: remove test case 2026-01-07 15:51:35 +01:00
Maxi Quoß
d18b54e7b6 fix: go tests 2026-01-07 15:48:28 +01:00
Maxi Quoß
c736561fab feat: add ip and mac variables to wake/shutdown commands 2025-10-19 22:42:27 +02:00
Maxi Quoß
c9bc0c8f38 fix: port check ignore connection refused error 2025-03-18 01:27:02 +01:00
Maxi Quoß
8bedcbf88a cleaner if 2025-03-17 11:14:14 +01:00
Maxi Quoß
c125afdfc7 fix: use netErr.Timeout() to check for timeout 2025-03-17 11:05:48 +01:00
Maxi Quoß
80fb1a6127 fix: ping test case 2025-03-17 11:02:10 +01:00
Maxi Quoß
92a66fc8a4 fix: reduce port check errors 2025-03-17 10:39:28 +01:00
Maxi Quoß
40226c2984 fix: change logger warning msg 2025-03-12 14:06:11 +01:00
Maxi Quoß
b7811dbe27 fix: better err msg formatting 2025-03-11 08:30:48 +01:00
Maxi Quoß
3dcc3fb64b feat: improve cross platform ping
- set privileged ping based on run as root
- distinguish between ping errors
2025-03-08 12:39:46 +01:00
Maxi Quoß
ebe28b45c0 fix: remove debug prints 2025-03-06 22:01:49 +01:00
Maxi Quoß
2e64e85d4b feat: custom timeouts for wake and shutdown 2025-03-06 00:49:24 +01:00
Maxi Quoß
de4a46995c fix: formatting 2025-02-09 23:49:42 +01:00
Maxi Quoß
c2f574426f feat: add more test cases 2025-02-08 02:29:20 +01:00
Maxi Quoß
e124f5b86e fix: minimize destination slice to just use the broadcast string 2024-12-31 13:41:07 +01:00
Maxi Quoß
322c1ccc50 fix: go test 2024-12-31 13:28:38 +01:00
Maxi Quoß
4540d8b851 fix: send 4 magic packets to different address combinations #583 2024-12-31 13:20:11 +01:00
Maxi Quoß
2f1acee092 go-dep: pocketbase > 0.23 2024-12-28 11:03:19 +01:00
seriousm4x
976e808d75 feat: add ping privileged env UPSNAP_PING_PRIVILEGED #207 2023-12-22 09:30:39 +01:00
seriousm4x
a9fa2b6a46 always defer close on port check #356 2023-12-17 09:45:34 +01:00
seriousm4x
3331ae96f5 minor adjustments 2023-12-14 16:35:46 +01:00
Tom Stivers
faa47f2cdd feat: add support for custom wake/ping commands 2023-12-14 16:32:52 +01:00
seriousm4x
86ed3c1c08 fix: cross platform build 2023-10-19 19:34:18 +02:00
seriousm4x
92a142b5ee fix: import sys/windows 2023-10-19 19:02:13 +02:00
seriousm4x
d50245ebaf capitalize logs 2023-10-19 18:54:15 +02:00
seriousm4x
2f3ad2fdcb fix: use SIGTERM, then SIGKILL to avoid zombies #266 2023-10-19 18:47:14 +02:00
seriousm4x
fc3e6e6e90 fix: seperate platform specific process killing #266 2023-10-19 12:21:22 +02:00
seriousm4x
f3ba2489f4 fix: kill child processes of shutdown cmd #266 2023-10-19 11:03:17 +02:00
seriousm4x
4426d60248 possible fix for #266 2023-10-18 01:22:38 +02:00
seriousm4x
8f84afaacc remove ping test 2023-09-19 01:35:13 +02:00
seriousm4x
e3ab652483 feat: add some go unit tests 2023-09-18 23:24:14 +02:00
seriousm4x
8299f22dfd fix: temp revert of #207 2023-09-11 00:52:28 +02:00
Maxi Quoß
cce6823f25 feat: optional non-root docker user #207 2023-09-10 22:45:56 +02:00
seriousm4x
05686bf271 fix: ping port cause device stuck on pending 2023-08-16 01:28:13 +02:00
seriousm4x
f8186ba015 feat: add sleep-on-lan support, #24 #78 #108 #162 2023-08-15 17:44:59 +02:00
Maxi Quoß
58d497eab1 try avoid loop variable capture 2023-08-15 14:30:33 +02:00
Maxi Quoß
9a1a816f25 change error messages 2023-02-11 22:49:23 +01:00
Maxi Quoß
8d43554e0e check if To4() == nil 2023-02-11 22:48:16 +01:00
Maxi Quoß
cb168f2f47 remove magicpacket log 2023-02-11 22:24:23 +01:00
Maxi Quoß
ef064e9335 shutdown: print stderr to log 2023-02-11 21:53:57 +01:00
Maxi Quoß
7bd4712ddd get correct broadcast for netmask 0.0.0.0, #46 2023-02-09 00:40:04 +01:00
Maxi Quoß
482a9884a4 add some error logging 2023-02-01 17:51:34 +01:00
Maxi Quoß
b6f76c55c9 replace go-ping/ping (deprecated) 2023-01-31 13:47:13 +01:00
Maxi Quoß
62cec056b9 rename package, auto add version to binary 2023-01-30 00:41:49 +01:00
Maxi Quoß
e78b66c920 include device name in error msg 2023-01-30 00:29:55 +01:00
Maxi Quoß
3018394888 change wake/shutdown log level 2023-01-30 00:26:04 +01:00
Maxi Quoß
969d1545b4 add debug output 2023-01-29 21:20:30 +01:00
Maxi Quoß
feff042a88 ping privileged 2023-01-29 20:14:18 +01:00
Maxi Quoß
0ef4b4ac02 fix shutdown cmd args 2023-01-28 15:22:25 +01:00