mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-29 04:14:18 +00:00
Support configure kcptun mtu.
This commit is contained in:
@@ -32,6 +32,7 @@ class PreferencesWindowController: NSWindowController
|
||||
@IBOutlet weak var kcptunNocompCheckBoxBtn: NSButton!
|
||||
@IBOutlet weak var kcptunDatashardTextField: NSTextField!
|
||||
@IBOutlet weak var kcptunParityshardTextField: NSTextField!
|
||||
@IBOutlet weak var kcptunMTUTextField: NSTextField!
|
||||
|
||||
@IBOutlet weak var removeButton: NSButton!
|
||||
let tableViewDragType: String = "ss.server.profile.data"
|
||||
@@ -244,6 +245,9 @@ class PreferencesWindowController: NSWindowController
|
||||
kcptunParityshardTextField.bind("value", to: editingProfile, withKeyPath: "kcptunProfile.parityshard"
|
||||
, options: [NSContinuouslyUpdatesValueBindingOption: true])
|
||||
|
||||
kcptunMTUTextField.bind("value", to: editingProfile, withKeyPath: "kcptunProfile.mtu"
|
||||
, options: [NSContinuouslyUpdatesValueBindingOption: true])
|
||||
|
||||
} else {
|
||||
editingProfile = nil
|
||||
hostTextField.unbind("value")
|
||||
|
||||
Reference in New Issue
Block a user