Opened 12 years ago

Closed 12 years ago

#2885 closed patch (invalid)

mythtv-setup does not allow hostnames for backen host and master server

Reported by: bert@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20
Severity: medium Keywords: DHCP
Cc: Ticket locked: no

Description

In mythtv-setup-> general, one has to fill in the IP address of the backend host and Master server. This is used for the frontend to connect to the right server. However in a setup with dynamic IPs(dhcp) this is impossible. Therefore it should be possible to enter the hostname of the servers too.

Attachments (1)

connect.patch (1.1 KB) - added by bert@… 12 years ago.
Patch for the mentioned problem/missing feature

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by stuartm

Resolution: invalid
Status: newclosed

Feature request without a patch.

Changed 12 years ago by bert@…

Attachment: connect.patch added

Patch for the mentioned problem/missing feature

comment:2 in reply to:  1 Changed 12 years ago by anonymous

Replying to stuartm:

Feature request without a patch.

You are fast! This was the first ticket I ever opened. Didn't know I had to add a patch right away. Anyways, here it is! Can you reopen the ticket, or should I file a new ticket? The attached patch improves connect function in mythsocket. when it can't connect to the hostname (because it is not an IP address, it tries to resolve it now and connect to the resolved IP address.

This is my first patch to mythtv, it is tested here at home, but please let me know if I didn't use the right format, or went the wrong direction with this solution.

comment:3 Changed 12 years ago by anonymous

Resolution: invalid
Status: closedreopened

comment:4 Changed 12 years ago by stuartm

Type: defectpatch

For future reference, if you intend on attaching a patch then it's best to say that in the ticket description and change the ticket type to patch.

comment:5 Changed 12 years ago by Isaac Richards

Resolution: invalid
Status: reopenedclosed

Qt has platform independent hostname stuff, should use that. But, of course, using DHCP doesn't mean that your IP will actually change, especially on a local network.

Note: See TracTickets for help on using tickets.