TortoiseSVN 通过代理脚本 [英] TortoiseSVN through a proxy script

查看:30
本文介绍了TortoiseSVN 通过代理脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 TortoiseSVN 从企业防火墙内部连接到远程 HTTPS SVN 服务器.我需要为此连接使用代理.我的问题是 TortoiseSVN 的代理设置只包括设置直接代理服务器地址的选项.但是,我连接的代理是通过脚本配置的.例如,在 Firefox 中,我使用网络设置中的自动代理配置 URL"选项.

I'm attempting to connect to a remote HTTPS SVN server from inside a corporate firewall using TortoiseSVN. I am required to use a proxy for this connection. My problem is that TortoiseSVN's proxy settings only include an option to set a direct proxy server address. The proxy I am connecting through, however, is configured via a script. In Firefox, for example, I use the "Automatic proxy configuration URL" option in the network settings.

有没有办法在 Tortoise 中使用代理配置脚本?我在配置 UI 中找不到一个 - 有没有办法通过编辑配置文件来配置它?

Is there any way to use a proxy configuration scripts with Tortoise? I can't find one in the config UI - is there a way to configure it through editing a config file?

推荐答案

可能有一种更简洁的方法来做到这一点,但您可以简单地从您的 Firefox 设置中获取自动配置文件的 URL 并打开它:.pac 文件是具有相当简单语法的原始文本.

There may be a cleaner way to do this but you could simply get the URL of the automatic configuration file from your firefox settings and open it: .pac files are raw text with a fairly simple syntax.

从该文件中提取公司代理的 ip/端口和其他配置信息应该相对简单(如果有多个,请查找适用于您的 IP 范围的那个).

Extracting the ip/port and other configuration info for your corporate proxy from that file should be relatively simple (look for the one that applies to your IP range if there are more than one).

显然,这在某种意义上不是很漂亮,如果代理配置发生变化,您将不得不再次执行此操作,而不是从自动设置中受益.在实践中,这个简单的技巧对我来说对从 Putty 到 TortoiseSVN 的所有东西都非常有用!

Obviously, this isn't very pretty in the sense that, if the proxy configuration changes, you'll have to do this again instead of benefiting from the automated settings. In practice, this simple trick has been very useful for everything from Putty to TortoiseSVN for me !

这篇关于TortoiseSVN 通过代理脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆