Mick van Dijke

Results 49 comments of Mick van Dijke

I've tested the UDP scraping with https://pypi.org/project/tracker-scraper/ and the result was valid and as expected, so I'm not sure why it doesn't work in your case. Are you sure UDP...

Good idea. I will make it so that if valid_until is set to 0, the key won't expire.

I think renaming it to "updated_milliseconds_ago" is fine. Just “updated” is indeed too vague.

```rust pub fn get_connection_id(remote_address: &SocketAddr) -> ConnectionId { match std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH) { Ok(duration) => ConnectionId(((duration.as_secs() / 3600) | ((remote_address.port() as u64) ConnectionId(0x7FFFFFFFFFFFFFFF), } } ``` This is a very poor implementation...

> hi @WarmBeer, I've been thinking again about your solution, and I do not know if adding a hash increases security. In the previous implementations, you have 10000 possible connections...

@josecelano > Yes, but if we add the IP to that implementation instead of using only the port we could solve that problem. The formula would then be: ``` connection_id...

> @josecelano @WarmBeer > > I think that your approach is good. > > We need to give each client a unforgivable and nonce that: > > * The user...

> > @josecelano > > > Yes, but if we add the IP to that implementation instead of using only the port we could solve that problem. > > >...

@josecelano is it ok to merge?

I'm planning on adding Docker images, after I add support for reverse proxy's 😄