mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 10:06: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 = {
|
systemd.services.udp2tcp = {
|
||||||
wantedBy = [ "mutli-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "network-online.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
||||||
path = with pkgs; [ dig.host ];
|
path = with pkgs; [ dig.host ];
|
||||||
|
|
||||||
|
restartIfChanged = true;
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.udp-over-tcp}/bin/udp2tcp\
|
${pkgs.udp-over-tcp}/bin/udp2tcp\
|
||||||
--udp-listen 127.0.0.1:6665 \
|
--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
|
||||||
system.stateVersion = "20.09";
|
system.stateVersion = "20.09";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
systemd.services.udp2tcp = {
|
systemd.services.udp2tcp = {
|
||||||
wantedBy = [ "mutli-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "network-online.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
||||||
|
restartIfChanged = true;
|
||||||
|
|
||||||
path = with pkgs; [ dig.host ];
|
path = with pkgs; [ dig.host ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue