From fd2b33a3802ca1a512d7540803e39f701c8ae3cc Mon Sep 17 00:00:00 2001 From: leohearts Date: Tue, 31 Aug 2021 17:33:50 +0800 Subject: [PATCH] fix #4 --- watchbird-source.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/watchbird-source.php b/watchbird-source.php index b49f381..0eb4409 100644 --- a/watchbird-source.php +++ b/watchbird-source.php @@ -1005,7 +1005,12 @@ function handle_replay(){ flag = escape(flag); } finalPacket = finalPacket.replace("{flag_content}", flag); - await fetch("?watchbird=replay&ip="+ipAddr+"&port="+port, { + + var FinalFetchUrl = "?watchbird=replay&ip="+ipAddr+"&port="+port; + if (document.getElementById("use_custom_replayer").checked){ + FinalFetchUrl = document.getElementById("replayer_addr").value + FinalFetchUrl; + } + await fetch(FinalFetchUrl, { body: finalPacket, method: 'POST', }).then(function(response) { @@ -1480,7 +1485,7 @@ class="mdui-icon material-icons">save');
- +