Closed froozen closed 9 years ago
I'd stick with PortID
as it is the nice high-level way to handle ports in Haskell.
You'll have to Pull-Reqeust network-anonymous-tor anyways :stuck_out_tongue:
So, I did some research, and it seems like the Tor Control Socket currently doesn't support any non-digit ports to forward to.
I added support for Service
s, but I don't think I'll get UNIX socket support working as long as the Tor Project doesn't.
Should I just add the lack of support to the the haddock comment or do we want to change the API?
I'd document the lack of support (also one would have to configure the tor control socket first).
Then, I'd report it upstream to the Tor project and ask them what they think about a control unix socket!
I have written to the tor-talk
mailing list. I will report back.
What were you guys talking about? Of course we need PortID
:
torrc(5):
ControlSocket Path Like ControlPort, but listens on a Unix domain socket, rather than a TCP socket. 0 disables ControlSocket (Unix and Unix-like systems only.)
We’re not talking about controlling the Tor daemon via unix sockets. It’s about forwarding ports from the hidden service to a unix socket, instead of a port number.
Support for that could show up though…
It's already supported from the torrc, but not via the control socket. I'm sure it'll be implemented at some point. We could open up an issue for this, but I don't think waiting with this merge until it happens would be a good idea.
Best Idea is to keep using PortID
and then wait & see.
I think so too. I won't do a PR for PortID
s over at network-anonymous-tor
until they are fully supported by Tor, though.
I second that decision.
This still leaves the issue with the amount of arguments @shak-mar pointed out. Do we just make the user assemble RicochetState
themselves?
So what's the opinion on this PR? Anything that should be changed or is it ready for merging?
I think it’s ready for merging. We can still change stuff later.
:+1:
Well, I'll have to resolve some conflicts first, it seems.
I didn’t try out your fold stuff in shell.nix until now, and it doesn’t work for me!
From the nature of the error, I'd guess we're using different versions of nix and that causes this problem. What exactly is the error you're getting? Also, @lukasepple does it work for you?
I’m not getting a nix error, but the version of hptoroc
is 2.1.6
instead of 2.1.7
, which makes the cabal configure
phase fail:
unrecognized option `--lenses'
Usage: …
I don’t see how this could be caused by different nix versions.
master builds for me just fine right now.
As you can see, there's still the problem on how to handle the. I think there are two options here:
network-anonymous-tor
Int
s orInteger
s as ports, asPortID
is annoying to use and you usually only end up usingPortNumber
anyways.Another thing is, that
startRicochet
doesn't really need to be passed the SOCKS port, as it can query it over the control socket. Unfortunately, this doesn't seem to be working properly, so I'll be taking a look at that and change it as soon as it's fixed.