Commit f69a246c authored by Danial Behzadi's avatar Danial Behzadi
Browse files

add http tunnel support

parent 6678c596
......@@ -392,6 +392,34 @@ class DNSPort(Gtk.Box):
vbox.pack_start(spin, False, False, 0)
self.pack_start(vbox, False, True, 0)
class HTTPPort(Gtk.Box):
def __init__(self):
Gtk.Box.__init__(self)
self.set_homogeneous(False)
vbox = Gtk.VBox()
vbox.set_homogeneous(False)
label = Gtk.Label()
label.set_markup(_("<b>HTTP Tunnel Port</b>"))
label.set_xalign(0)
vbox.pack_start(label, False, False, 0)
label = Gtk.Label()
label.set_markup(_("<small>Local port on which a HTTP tunnel would be listen</small>"))
label.set_xalign(0)
vbox.pack_start(label, False, False, 0)
self.pack_start(vbox, True, True, 0)
vbox = Gtk.VBox()
vbox.set_homogeneous(False)
spin = Gtk.SpinButton()
port = dconf.get_int("http-port")
adjustment = Gtk.Adjustment(value=port, lower=1, upper=65535, step_increment=1, page_increment=1, page_size=0)
spin.set_adjustment(adjustment)
spin.set_text(str(port))
dconf.bind("http-port", spin, "value", Gio.SettingsBindFlags.DEFAULT)
vbox.pack_start(spin, False, False, 0)
self.pack_start(vbox, False, True, 0)
class AcceptConnection(Gtk.Box):
def __init__(self):
Gtk.Box.__init__(self)
......@@ -597,6 +625,8 @@ class StackPorts(Gtk.ScrolledWindow):
box.pack_start(socks_port_box, False, False, 0)
dns_port_box = DNSPort()
box.pack_start(dns_port_box, False, False, 0)
http_port_box = HTTPPort()
box.pack_start(http_port_box, False, False, 0)
self.add(box)
class StackBridges(Gtk.ScrolledWindow):
......
carburetor (2.6-1) bionic; urgency=medium
* add http tunnel port
-- Danial Behzadi <dani.behzi@ubuntu.com> Mon, 08 Jul 2019 23:50:00 +0430
carburetor (2.6-1) bionic; urgency=medium
* use spinner on tractor start/stop
......
......@@ -7,7 +7,7 @@ Build-Depends: debhelper (>=9)
Package: carburetor
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, tractor (>=2.2-0~), python3, python3-gi(>=3.10.2), python3-gi-cairo, gir1.2-gtk-3.0, python3-distutils, python3-notify2
Depends: ${shlibs:Depends}, ${misc:Depends}, tractor (>=2.4-0~), python3, python3-gi(>=3.10.2), python3-gi-cairo, gir1.2-gtk-3.0, python3-distutils, python3-notify2
Description: Settings app for Tractor
This package is a graphical settings for tractor
which is an app using Python stem to provide
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment