From 8f0175641fd17f00408fa1387396c6380d82ab25 Mon Sep 17 00:00:00 2001 From: jianguo Date: Mon, 3 Jun 2024 13:59:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=200.3.1=20=E8=BF=9E=E6=8E=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../linux/aohe-sane-service.png | Bin pom.xml | 5 ++--- src/main/java/org/aohe/core/web/SocketFactory.java | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) rename {src/main/resources => assets}/linux/aohe-sane-service.png (100%) diff --git a/src/main/resources/linux/aohe-sane-service.png b/assets/linux/aohe-sane-service.png similarity index 100% rename from src/main/resources/linux/aohe-sane-service.png rename to assets/linux/aohe-sane-service.png diff --git a/pom.xml b/pom.xml index e72ec37..1946363 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.aohe sane-service - 0.3.0 + 0.3.1 aohe-sane-service @@ -146,9 +146,8 @@ false linux 奥诃影像扫描控件 - Sane's socket access programme for use with WEB. + 奥诃公司为影像 WEB 应用开发的 USB 扫描仪连接驱动,请搭配 WEB 产品使用。 - src/main/resources/linux/aohe-sane-service.png true true true diff --git a/src/main/java/org/aohe/core/web/SocketFactory.java b/src/main/java/org/aohe/core/web/SocketFactory.java index d56e0a8..9dad715 100644 --- a/src/main/java/org/aohe/core/web/SocketFactory.java +++ b/src/main/java/org/aohe/core/web/SocketFactory.java @@ -32,6 +32,7 @@ public class SocketFactory { private static SocketServer getSocket() throws UnknownHostException { log.info("Create Socket ..."); socketServer = new SocketServer(8997); + socketServer.setReuseAddr(true); return socketServer; }