pstsrv: add pst.moe, retire w1r3.net

This commit is contained in:
Lucas 2021-12-03 13:53:52 +00:00
parent 506952db72
commit 699363c409
1 changed files with 5 additions and 4 deletions

View File

@ -52,9 +52,10 @@ pst_ix_io()
$torsocks curl -F "f:1=@$1" http://ix.io/ $torsocks curl -F "f:1=@$1" http://ix.io/
} }
pst_w1r3_net() pst_pst_moe()
{ {
$torsocks curl -F "upload=@$1" https://w1r3.net/ $torsocks curl -F "content=<$1" -F "expire_after=86400" \
https://pst.moe/paste
} }
do_upload() do_upload()
@ -100,8 +101,8 @@ catbox.moe)
ix.io) ix.io)
url=$(do_upload pst_ix_io "$@") url=$(do_upload pst_ix_io "$@")
;; ;;
w1r3.net) pst.moe)
url=$(do_upload pst_w1r3_net "$@") url=$(do_upload pst_pst_moe "$@")
;; ;;
*) *)
err "unknown service $srv" err "unknown service $srv"