瀏覽代碼

New sshuttle helper function

master
Nicolas Petton 8 月之前
父節點
當前提交
c4bf429eb0
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: E8BCD7866AFCF978
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      local/tunnel.el

+ 7
- 0
local/tunnel.el 查看文件

@ -7,4 +7,11 @@
(with-current-buffer buffer
(insert (concat "Starting tunnel on " host " port " port)))))
(defun sshuttle-tunnel (host)
(interactive "suser@host: ")
(let ((buffer "sshuttle"))
(async-shell-command
(format "sudo sshuttle --dns -r %s 0.0.0.0/0" host)
buffer)))
(provide 'tunnel)

Loading…
取消
儲存