mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 01:56:13 +01:00
Improvements to UDP blockade bypass
Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
parent
e9a6573a4e
commit
7ecbeb6c98
|
@ -86,11 +86,13 @@
|
|||
};
|
||||
|
||||
systemd.services.udp2tcp = {
|
||||
wantedBy = [ "mutli-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
||||
path = with pkgs; [ dig.host ];
|
||||
|
||||
restartIfChanged = true;
|
||||
|
||||
script = ''
|
||||
${pkgs.udp-over-tcp}/bin/udp2tcp\
|
||||
--udp-listen 127.0.0.1:6665 \
|
||||
|
@ -98,6 +100,15 @@
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.services.udp2tcp-wake-restart = {
|
||||
wantedBy = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
|
||||
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
|
||||
|
||||
script = ''
|
||||
systemctl restrart udp2tcp.services
|
||||
'';
|
||||
};
|
||||
|
||||
# System
|
||||
system.stateVersion = "20.09";
|
||||
};
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.services.udp2tcp = {
|
||||
wantedBy = [ "mutli-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
||||
restartIfChanged = true;
|
||||
|
||||
path = with pkgs; [ dig.host ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue