From 5d06b7b2dd87d272b9a3d2903bfbf27a42b72c55 Mon Sep 17 00:00:00 2001
From: NaitLee <nait@yozora.tech>
Date: Tue, 17 Dec 2024 23:47:28 +0800
Subject: [PATCH] fix: minor fix for css; listen localhost for reverse proxy

---
 junk.css | 6 ++++++
 main.go  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/junk.css b/junk.css
index afe2008..20789a6 100644
--- a/junk.css
+++ b/junk.css
@@ -3,9 +3,15 @@
     --back: #fdfdfd;
 }
 
+* {
+    box-sizing: border-box;
+}
+
 body {
     margin: 1em auto;
     width: 21cm;
+    max-width: 100%;
+    padding: 8px 0;
     line-height: 1.5;
     background-color: var(--back);
     color: var(--fore);
diff --git a/main.go b/main.go
index 5911088..b3a29d9 100644
--- a/main.go
+++ b/main.go
@@ -12,7 +12,7 @@ import (
 	"time"
 )
 
-const junkaddr = "[::]:8012"
+const junkaddr = "localhost:18012"
 const proxybufsize = 4 << 10
 
 type JunkConf struct {