浏览代码

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)

正在加载...
取消
保存