File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,15 +70,11 @@ echo "Internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || e
7070
7171function is_port_open()
7272{
73- # The URL leads to an application I've deployed for NCP on https://fly.io using a Docker container I made.
74- # The image for the container is available on Docker Hub (zendai/checkport:sanic) if you wish to deploy one yourself.
75- # The code for the Sanic server and Docker image is available at: https://github.com/ZendaiOwl/Build/tree/master/Docker/Python/Sanic/checkport
76- # I only have a free tier with limited outbound data per month, 100GB p/month.
77- # If we go over 100GB outbound data in a month, I will start being charged for the data going over that limit.
78- # I used a low level Python socket library & fortunately each request only consumes aprox. ~ 60-74 bytes p/second.
79- # Meaning 100GB should be plenty, it should be enough to handle a little less
80- # than 450 request p/second a month, unless my calculations are wrong.
81- # Thank you :pray: from Victor-ray, S. https://github.com/ZendaiOwl
73+ # Checkport is deployed at fly.io by Victor-ray, S. for NextcloudPi.
74+ # Repo: https://gitbox.zendai.net.eu.org/n0rs3/checkport
75+ # docker.io/zendai/checkport:sanic
76+ # Please don't abuse it :pray:
77+ # It's deployed with free limits on my personal account and can handle a little less than 450 request p/second before I get charged extra.
8278 local -r PORTURL=" https://checkport.zendai.net.eu.org/check"
8379 local TYPE=" ${1?} " IPType
8480 # Checks both port 80 & 443 for IPv4/IPv6 and returns the result or [N/A] [N/A]
You can’t perform that action at this time.
0 commit comments