Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
021552a2
Commit
021552a2
authored
Nov 08, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luatelnet: remove the telnet commands from the command line.
parent
ffb601a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
share/lua/intf/telnet.lua
share/lua/intf/telnet.lua
+6
-3
No files found.
share/lua/intf/telnet.lua
View file @
021552a2
...
...
@@ -193,9 +193,6 @@ while not vlc.misc.should_die() do
-- Caught a ^D
client
.
cmds
=
"quit"
end
if
client
.
type
==
host
.
client_type
.
net
then
telnet_commands
(
client
)
end
client
.
buffer
=
""
-- split the command at the first '\n'
...
...
@@ -208,6 +205,12 @@ while not vlc.misc.should_die() do
client
.
buffer
=
string.gsub
(
string.sub
(
client
.
cmds
,
0
,
index
-
1
),
"^%s*(.-)%s*$"
,
"%1"
)
client
.
cmds
=
string.sub
(
client
.
cmds
,
index
+
1
)
-- Remove telnet commands from the command line
if
client
.
type
==
host
.
client_type
.
net
then
telnet_commands
(
client
)
end
-- Run the command
if
client
.
status
==
host
.
status
.
password
then
if
client
.
buffer
==
password
then
client
:
send
(
IAC
..
WONT
..
ECHO
..
"
\r\n
Welcome, Master\r\n"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment