berkeley, ca
software engineer
From alex wennerberg to ~adnano/go-gemini-devel
On Wed Feb 24, 2021 at 8:13 AM PST, Adnan Maolood wrote: > I added an example logging middleware to examples/server.go to > demonstrate that a logging middleware is possible. Great! I'll test this out on Flounder soon Alex
From alex wennerberg to ~adnano/go-gemini-devel
My server doesn't seem to capture the remote IP address anymore with go-gemini. I did a grep in the project for RemoteAddr and, while it is in the request struct, it doesn't seem to be used anywhere else. Is this a bug? Thanks! All the best, Alex
From alex wennerberg to ~aw/flounder
Hi Rodrigo! I re-read the documentation I wrote for custom domains, and realized I neglected an important step! You need to go to https://flounder.online/me and set your custom domain. Thanks for making me aware of this issue. All the best, Alex P.S. I have forwarded this email to the Flounder mailing list, which is a good place to reach out to if you have questions. On Wed Feb 10, 2021 at 5:06 PM PST, Rodrigo Franco wrote:
From alex wennerberg to ~aw/flounder
Thank you Adnan! I have upgraded my dependency. Olivier, the link you provided now works :) Alex On Tue Feb 9, 2021 at 2:01 PM PST, Adnan Maolood wrote: > go-gemini now punycodes IDNs before performing a DNS lookup, and sends > the punycoded IDN to the server as part of the request URL. So IDNs > are now supported without any changes to existing code that uses > go-gemini. > > Since go-gemini uses the Go URL library, it supports parsing IRIs, but > it will always percent-encode non-ASCII characters when sending them to > the server. This shouldn't really be a problem.
From alex wennerberg to ~aw/flounder
This has been added to Flounder! On Tue Feb 9, 2021 at 2:01 PM PST, Adnan Maolood wrote: > go-gemini now punycodes IDNs before performing a DNS lookup, and sends > the punycoded IDN to the server as part of the request URL. So IDNs > are now supported without any changes to existing code that uses > go-gemini. > > Since go-gemini uses the Go URL library, it supports parsing IRIs, but > it will always percent-encode non-ASCII characters when sending them to > the server. This shouldn't really be a problem. > > Should the Gemini specification be updated to require the use of IRIs, > go-gemini will need to be updated to send the non-punycoded IDN to the
From alex wennerberg to ~adnano/go-gemini-devel
Thank you Adnan! I have upgraded my dependency. Olivier, the link you provided now works :) Alex On Tue Feb 9, 2021 at 2:01 PM PST, Adnan Maolood wrote: > go-gemini now punycodes IDNs before performing a DNS lookup, and sends > the punycoded IDN to the server as part of the request URL. So IDNs > are now supported without any changes to existing code that uses > go-gemini. > > Since go-gemini uses the Go URL library, it supports parsing IRIs, but > it will always percent-encode non-ASCII characters when sending them to > the server. This shouldn't really be a problem.
From alex wennerberg to ~aw/flounder
An addendum -- Using this library specifically would require me adding CGI to Flounder. This would allow users to run arbitrary scripts in their capsule. This is a cool idea, and I want to see if I can come up with a way to support it, but it is an immense security challenge -- I would have to make sure that users are able to run scripts without consuming all the server resources, or accessing the Flounder server code itself. I haven't looked too much into how I could do this yet, if it is at all possible. All the best, Alex
From alex wennerberg to ~aw/flounder
Hi Maxime! (Ignore my last email) Thanks for reaching out. In order to add a comment section, I would have to program it in to my software. it's not something you'd be able to do on flounder at the moment. I've thought about this, but my biggest concern is spam and abuse. I would either have to limit it to Flounder users (which would make it not really open) or open it to everyone, in which case there is little I can do for spam/abuse protection. I'll consider the feature, but this is a tough problem to solve I think. Also, I have a couple tips about your capsule:
From alex wennerberg to ~aw/patches
Much appreciated. Let me know if you have any other questions or feedback Alex On Tue Feb 9, 2021 at 8:27 AM PST, Adnan Maolood wrote: > On Tue Feb 9, 2021 at 11:02 AM EST, alex wennerberg wrote: > > Thanks for these patches! I applied them. Are you experimenting with > > self hosting or just helping out? > > Just helping out (at least for now).
From alex wennerberg to ~aw/flounder
On Tue Feb 9, 2021 at 2:24 AM PST, Olivier Raggi wrote: > Hello, > > Just to gently point out that proxy.flounder.online does not handle > IDNs (domain names in Unicode, RFC 5890) / IRIs (Internationalized > Resource Identifiers, RFC 3987). > It falsely returns "Gateway error: dial tcp: <URL>: no such host" > message. > > For example: > https://proxy.flounder.online/fran%C3%A7ais.lanterne.chilliet.eu > > I have note that Vulpes as same behavior, but Mozz.us handle it well: >