I am currently making a small script that you use in the browser to get the current user's IP address (I use it with a WebRTC chat), and as I noticed that all popular packages that get an IP address through WebRTC are outdated and no longer work, wanted to Open Source the module.
Now, as packages that get a user's public AND private aren't necessarily used for Real Time Communications (used mostly in malicious scripts that log the users IP without it showing in the network tab in the console, but I want to help the small group of people needing this in a video chat or text chat), so I want my package to be completely bulletproof. However, I also want it to be licensed under the MIT license, so what should I do to make it legally "bulletproof" (impossible for anyone to sue me for any reason or do anything bad like that)? Also, is there any caveats around open sourcing something that could potentially used maliciously? I found these two different GitHub repositories that seem like they don't do anything other than a license, should I just do the same? Could someone do something bad to me if I only provide a license?