Skip to content

Commit

Permalink
tmp option
Browse files Browse the repository at this point in the history
  • Loading branch information
ariary committed Sep 29, 2022
1 parent 0350bad commit dccacd1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tacos/tacos.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
fmt.Println("Usage: tacos [listener_url]:[port]")
os.Exit(1)
}
if setreuid {
if setreuid { //to fix: undefined: syscall.Setreuid for windows
euid := syscall.Geteuid() //effective ID
syscall.Setreuid(euid, euid) //set real user id to eid, Print error if you want to debug
}
Expand Down
18 changes: 16 additions & 2 deletions wrapper/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ for i in "$@"; do
BORE=true
shift;shift;
;;
--tmp)
TMP=true
shift;shift;
;;
--help|-h)
HELP=true
;;
Expand Down Expand Up @@ -63,10 +67,20 @@ cp $HOME/.local/bin/tacos .

if [[ "$NGROK" ]];
then
./socat-listener-behind-tunneling.sh
if [[ "$TMP" ]];
then
./socat-listener-behind-tunneling.sh --tmp
else
./socat-listener-behind-tunneling.sh --tmp
fi
elif [[ "$BORE" ]];
then
./socat-listener-behind-tunneling.sh --bore
if [[ "$TMP" ]];
then
./socat-listener-behind-tunneling.sh --bore --tmp
else
./socat-listener-behind-tunneling.sh --bore --tmp
fi
else
./socat-listener.sh --lhost $1 --lport $2 --gitar
fi

0 comments on commit dccacd1

Please sign in to comment.