Skip to content

Commit 6170f97

Browse files
committed
Fixes to json
2 parents 6c64ea7 + 23f5fc3 commit 6170f97

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-code-ui",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "A web-based UI for Claude Code CLI",
55
"type": "module",
66
"main": "server/index.js",

server/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ async function setupProjectsWatcher() {
131131
}
132132
}
133133

134-
// Get the first non-localhost IP address
135134

136135
const app = express();
137136
const server = http.createServer(app);
@@ -181,8 +180,7 @@ app.use(express.static(path.join(__dirname, '../dist')));
181180

182181
// API Routes (protected)
183182
app.get('/api/config', authenticateToken, (req, res) => {
184-
// Always use the server's actual IP and port for WebSocket connections
185-
const host = req.headers.host || `${req.hostname}:${PORT}`;
183+
const host = req.headers.host || `${req.hostname}:${PORT}`;
186184
const protocol = req.protocol === 'https' || req.get('x-forwarded-proto') === 'https' ? 'wss' : 'ws';
187185

188186
console.log('Config API called - Returning host:', host, 'Protocol:', protocol);

0 commit comments

Comments
 (0)