Skip to content

Commit

Permalink
Allow Host name as well as IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
istnv committed Nov 5, 2023
1 parent bc10729 commit 05f9662
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion companion/HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If you can successfully connect to VLC with a browser, this module will work. En

Setting | Description
-----------------|---------------
**Target IP** | Enter the address of the VLC computer. You can enter 127.0.0.1 if Companion is running on the same computer.
**Target IP/HOST** | Enter the address of the VLC computer. You can enter 127.0.0.1 if Companion is running on the same computer. You may enter a Host name if there is a valid DNS server on the network
**Target Port** | Enter the port VLC is listening for HTTP/REST commands. Default port for VLC is 8080.
**Password** | Enter the password if required to interact with VLC
**Increase timer resolution** | Enable for better response and countdown timer accuracy. Disable if companion or playback is bogged down.
Expand Down
6 changes: 4 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ export const ConfigFields = [
{
type: 'textinput',
id: 'host',
label: 'Target IP',
label: 'Target HOST/IP',
tooltip: 'Host name only works if there is a\nworking DNS server on the local network.',
width: 8,
default: '127.0.0.1',
regex: Regex.IP,
regex:
'/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/gm',
},
{
type: 'textinput',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videolan-vlc",
"version": "2.3.7",
"version": "2.4.0",
"main": "index.js",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 05f9662

Please sign in to comment.