From 22477f0eca904ec628ab59cd749f959af35c1439 Mon Sep 17 00:00:00 2001
From: Moli <linmolilin@gmail.com>
Date: 星期五, 15 四月 2022 10:15:52 +0800
Subject: [PATCH] 加入按配置使用的功能

---
 WOLAwaken/Helper/SendWOLPack.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/WOLAwaken/Helper/SendWOLPack.cs b/WOLAwaken/Helper/SendWOLPack.cs
index f3b56f3..c66e86b 100644
--- a/WOLAwaken/Helper/SendWOLPack.cs
+++ b/WOLAwaken/Helper/SendWOLPack.cs
@@ -9,10 +9,17 @@
     public class SendWOLPack
     {
         public byte[] SendData = new byte[102];
-        public int[] macAddress = new int[] { 0x04, 0x92, 0x26, 0xBE, 0x92, 0x98 };
+        public int[] macAddress = new int[] { 0x50, 0xEB, 0xF6, 0x43, 0x50, 0x08 }; //50:EB:F6:43:50:08
 
         public SendWOLPack()
         {
+            var config = Helpers.Tool.GetSystemConfig().baseSysConfg;
+            if (config != null) {
+                if (config.mac != null && config.mac.Length > 0)
+                {
+                    macAddress = config.mac;
+                }
+            }
             int index = 0;
             for (int i = 0; i < 6; i++)
             {

--
Gitblit v1.9.1