Skip to content

Commit

Permalink
和客户端连接模式的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Apr 18, 2024
1 parent e1e7926 commit 9bce7be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/proto/proto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ end
function m.listen(mode, socketPort)
m.mode = mode
if mode == 'stdio' then
log.info('Listen Mode: stdio')
if platform.os == 'windows' then
local windows = require 'bee.windows'
windows.filemode(io.stdin, 'b')
Expand All @@ -246,6 +247,10 @@ function m.listen(mode, socketPort)

local server = net.listen('unix', unixPath)

log.info('Listen Mode: socket')
log.info('Listen Port:', socketPort)
log.info('Listen Path:', unixPath)

assert(server)

local dummyClient = {
Expand Down

0 comments on commit 9bce7be

Please sign in to comment.