otbutz
otbutz
> The two users are on LAN and can see each other. If they are put in same ShareDrop room they can transfer files. The problem is that the server...
https://github.com/szimek/sharedrop/blob/0418b7894b58576e4c9f3b82228b14c9dbc1006e/server.js#L79 pseudo code: ```js if (isIPv6(ip)) { ip = extractPrefix(ip); } const name = crypto.createHmac('md5', secret).update(ip).digest('hex'); ```
@szimek looks doable via [ippaddr.js](https://github.com/whitequark/ipaddr.js/) ```js const ipaddr = require('ipaddr.js'); var ip = '950b:e036:13c8:3be6:d9cb:b7a3:eccd:3aff' const addr = ipaddr.process(ip); if (addr.kind() === 'ipv6') { ip = ipaddr.IPv6.networkAddressFromCIDR(ip + '/64').toString(); } ```...
That's a different story as we're mixing javax and jakarta in our dependencies. Both provide the same API, so we end up with overlapping classes. (Background: https://www.baeldung.com/java-enterprise-evolution) My changes enable...
Any objections?
> > My changes enable Multi-Release functionality which allows dependencies to make use of newer Java APIs at runtime. > > What does this mean? See https://openjdk.org/jeps/238. The JVM is...
An example where this caused problems in the past: https://github.com/komoot/photon/discussions/731
Are usernames currently restricted to ASCII ? https://stackoverflow.com/questions/973541/how-to-set-sqlite3-to-be-case-insensitive-when-string-comparing#comment22403022_973785 e.g in the turkish alphabet: `i` -> `İ` I wouldn't touch this, to be honest.
I strongly support this. Moving to a time series database like InfluxDB could be the next big step.
I'd go even further and use a sqlite database **per monitor**.