瀏覽代碼

New sshuttle helper function

master
Nicolas Petton 8 個月前
父節點
當前提交
c4bf429eb0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 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)

載入中…
取消
儲存