From 81c62efa3183005e4de373217ff310a88c6f35eb Mon Sep 17 00:00:00 2001
From: echicken <echicken@bbs.electronicchicken.com>
Date: Fri, 26 Nov 2021 05:05:24 +0000
Subject: [PATCH] Added UsingHAProxy() function to this here funclib dot js

---
 exec/load/ftelnethelper.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/exec/load/ftelnethelper.js b/exec/load/ftelnethelper.js
index 3f2c031350..fee2c438ad 100644
--- a/exec/load/ftelnethelper.js
+++ b/exec/load/ftelnethelper.js
@@ -136,6 +136,11 @@ function UsingSecondRLoginName() {
 	return (FBBSOptions.indexOf("USE_2ND_RLOGIN") !== -1);
 }
 
+function UsingHAProxy() {
+	GetSBBSIniValues();
+	return (FBBSOptions.indexOf("HAPROXY_PROTO") !== -1);
+}
+
 function GetInterface(i) {
 	if (['', '0.0.0.0', '::'].indexOf(i) > -1) return 'localhost';
 	return i;
-- 
GitLab