Implemented torsocks link opening
This commit is contained in:
@@ -615,19 +615,7 @@ proc render_handler_gopher {prevurl rooturl path body textw} {
|
|||||||
# now we have resource type, description, selector, host and port
|
# now we have resource type, description, selector, host and port
|
||||||
# let's output it depending on the type and ignore unknown types
|
# let's output it depending on the type and ignore unknown types
|
||||||
switch $rtype {
|
switch $rtype {
|
||||||
0 -
|
0 - 1 - 5 - g - I - : - ";" - < - d - p - s - P - X -
|
||||||
1 -
|
|
||||||
5 -
|
|
||||||
g -
|
|
||||||
I -
|
|
||||||
: -
|
|
||||||
; -
|
|
||||||
< -
|
|
||||||
d -
|
|
||||||
p -
|
|
||||||
s -
|
|
||||||
P -
|
|
||||||
X -
|
|
||||||
9 { # plain text, gophermap, binary, image, sound...
|
9 { # plain text, gophermap, binary, image, sound...
|
||||||
linkinsert $textw $prevurl $rooturl "$tscheme://$rhost:$rport/$rtype$rsel" $rdesc "" preformatter
|
linkinsert $textw $prevurl $rooturl "$tscheme://$rhost:$rport/$rtype$rsel" $rdesc "" preformatter
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user