From 0bf4a3d86b017fc4cadddda4182e682386dfee82 Mon Sep 17 00:00:00 2001
From: czw <selecti@yeah.net>
Date: 星期四, 03 七月 2025 18:08:52 +0800
Subject: [PATCH] 1

---
 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/AutoThread.cs |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs"
index 6cf597f..969ecf1 100644
--- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs"
+++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs"
@@ -2027,24 +2027,23 @@
 
 
 
-
-
     }
+
 
     public class HttpServer
     {
         System.Net.HttpListener HttpSvcHost = null;
 
-        private readonly string _listenerPrefix = "";
+        public static string _listenerPrefix = "";
         public HttpServer(string ip)
         {
-            _listenerPrefix = ip;
+            _listenerPrefix = $"http://{ip}:8808/";
         }
         public void HttpServerRun()
         {
             HttpSvcHost = new System.Net.HttpListener();
             HttpSvcHost.AuthenticationSchemes = System.Net.AuthenticationSchemes.Anonymous;
-            HttpSvcHost.Prefixes.Add($"http://{_listenerPrefix}:8808/");
+            HttpSvcHost.Prefixes.Add(_listenerPrefix);
             HttpSvcHost.Start();
             HttpSvcHost.BeginGetContext(HttpSvcListenerCallback, null);
         }
@@ -2327,8 +2326,6 @@
         }
 
     }
-
-
 
     internal class WebSocketClient
     {

--
Gitblit v1.9.1