实现回源跟随功能

This commit is contained in:
刘祥超
2022-03-14 15:07:49 +08:00
parent 46d38ff8c0
commit 8c6e960db7
6 changed files with 14 additions and 1 deletions

View File

@@ -23,7 +23,8 @@ Vue.component("reverse-proxy-box", {
readTimeout: {count: 0, unit: "second"},
idleTimeout: {count: 0, unit: "second"},
maxConns: 0,
maxIdleConns: 0
maxIdleConns: 0,
followRedirects: false
}
}
if (reverseProxyConfig.addHeaders == null) {
@@ -183,6 +184,13 @@ Vue.component("reverse-proxy-box", {
</tbody>
<more-options-tbody @change="changeAdvancedVisible" v-if="isOn()"></more-options-tbody>
<tbody v-show="isOn() && advancedVisible">
<tr v-show="family == null || family == 'http'">
<td>回源跟随</td>
<td>
<checkbox v-model="reverseProxyConfig.followRedirects"></checkbox>
<p class="comment">选中后,自动读取源站跳转后的网页内容。</p>
</td>
</tr>
<tr v-show="family == null || family == 'http'">
<td>自动添加的Header</td>
<td>