Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 86bebce

Browse files
author
icymind
committed
update ss form to contains obfs options
1 parent 87f739a commit 86bebce

File tree

1 file changed

+16
-0
lines changed
  • src/renderer/components/Manage/ProfileEditor/ProxiesForm

1 file changed

+16
-0
lines changed

src/renderer/components/Manage/ProfileEditor/ProxiesForm/SsForm.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
</div>
4040
</div>
4141
</div>
42+
43+
<div class="inline field">
44+
<div class="ui checkbox">
45+
<input type="checkbox" value="obfs" v-model="enableObfs">
46+
<label>Obfuscating</label>
47+
</div>
48+
<input type="text" v-model="shadowsocks.obfs_opts">
49+
</div>
4250
</form>
4351
</template>
4452

@@ -58,6 +66,14 @@ export default {
5866
set: function (value) {
5967
this.shadowsocks.fast_open = Boolean(value)
6068
}
69+
},
70+
enableObfs: {
71+
get: function () {
72+
return this.shadowsocks.plugin === 'obfs-local'
73+
},
74+
set: function (value) {
75+
this.shadowsocks.plugin = value ? 'obfs-local' : 'none'
76+
}
6177
}
6278
}
6379
}

0 commit comments

Comments
 (0)