Skip to content

Commit cbe0d33

Browse files
committed
fix loop
1 parent 8feba61 commit cbe0d33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

misc/do-rtmpsuck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ sudo sysctl -w net.inet.ip.forwarding=1
66
# apply the pf rules:
77
echo '
88
rdr pass log on lo0 proto tcp from en0 to any port 1935 -> 127.0.0.1
9-
pass out on en0 route-to lo0 inet proto tcp from en0 to any port 1935 keep state
9+
pass out on en0 route-to lo0 inet proto tcp from en0 to any port 1935 keep state user != root
1010
' | sudo pfctl -ef -
1111

1212
# check the pf rules:
1313
# sudo pfctl -s all
1414

15-
rtmpsuck -z;
15+
sudo rtmpsuck $@;
1616

1717
# clear the pf rules:
1818
sudo pfctl -F all -f /etc/pf.conf

0 commit comments

Comments
 (0)