From b8c0c8bc346c0367a3e04e39a03d7e1ae1757271 Mon Sep 17 00:00:00 2001 From: b <dsnake@protonmail.com> Date: Thu, 3 Mar 2022 18:19:39 -0500 Subject: [PATCH] function for if snowflake proxy is running --- IPtProxy.go/IPtProxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPtProxy.go/IPtProxy.go b/IPtProxy.go/IPtProxy.go index 61f7b2d..6fb0e06 100644 --- a/IPtProxy.go/IPtProxy.go +++ b/IPtProxy.go/IPtProxy.go @@ -361,3 +361,8 @@ func IsPortAvailable(port int) bool { return false } + +// IsSnowflakeProxyRunning - Checks to see if a snowflake proxy is running in your app +func IsSnowflakeProxyRunning() bool { + return snowflakeProxy != nil +} \ No newline at end of file -- GitLab