Bugzilla – Attachment 167152 Details for
Bug 36948
Adjust SIPconfig for log_file and IP version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36948: (follow-up) Allow IPv[46] in port config
Bug-36948-follow-up-Allow-IPv46-in-port-config.patch (text/plain), 2.72 KB, created by
Marcel de Rooy
on 2024-05-24 08:53:46 UTC
(
hide
)
Description:
Bug 36948: (follow-up) Allow IPv[46] in port config
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-05-24 08:53:46 UTC
Size:
2.72 KB
patch
obsolete
>From 2ea6c9392a6faf8d3f749c05610c7fb1382e9e36 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 24 May 2024 07:55:27 +0000 >Subject: [PATCH] Bug 36948: (follow-up) Allow IPv[46] in port config >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/SIP/Sip/Configuration.pm | 8 ++++++-- > debian/templates/SIPconfig.xml | 4 ++-- > etc/SIPconfig.xml | 4 ++-- > 3 files changed, 10 insertions(+), 6 deletions(-) > >diff --git a/C4/SIP/Sip/Configuration.pm b/C4/SIP/Sip/Configuration.pm >index 819ec1d486..5c74b124a7 100644 >--- a/C4/SIP/Sip/Configuration.pm >+++ b/C4/SIP/Sip/Configuration.pm >@@ -39,8 +39,8 @@ sub new { > my %listeners; > > # The key to the listeners hash is the 'port' component of the >- # configuration, which is of the form '[host]:[port]/proto', and >- # the 'proto' component could be upper-, lower-, or mixed-cased. >+ # configuration, which is of the form '[host]:[port]/proto[/IPv[46]]' >+ # The 'proto' component could be upper-, lower-, or mixed-cased. > # Regularize it here to lower-case, and then do the same below in > # find_server() when building the keys to search the hash. > >@@ -76,6 +76,10 @@ sub find_service { > siplog( "LOG_DEBUG", > "Configuration::find_service: Trying $portstr" ); > last if ( exists( ( $self->{listeners} )->{$portstr} ) ); >+ $portstr .= '/ipv4'; # lc, see ->new >+ last if ( exists( ( $self->{listeners} )->{$portstr} ) ); >+ $portstr .= '/ipv6'; # lc, see ->new >+ last if ( exists( ( $self->{listeners} )->{$portstr} ) ); > } > return $self->{listeners}->{$portstr}; > } >diff --git a/debian/templates/SIPconfig.xml b/debian/templates/SIPconfig.xml >index 53b0638802..e79a2950b6 100644 >--- a/debian/templates/SIPconfig.xml >+++ b/debian/templates/SIPconfig.xml >@@ -20,13 +20,13 @@ > protocol="NCIP/1.0" /> > --> > <service >- port="127.0.0.1:8023/tcp" >+ port="127.0.0.1:8023/tcp/IPv4" > transport="telnet" > protocol="SIP/2.00" > timeout="60" /> > > <service >- port="127.0.0.1:6001/tcp" >+ port="127.0.0.1:6001/tcp/IPv4" > transport="RAW" > protocol="SIP/2.00" > client_timeout="600" >diff --git a/etc/SIPconfig.xml b/etc/SIPconfig.xml >index 33f1859c9f..1816b91a23 100644 >--- a/etc/SIPconfig.xml >+++ b/etc/SIPconfig.xml >@@ -29,13 +29,13 @@ > protocol="NCIP/1.0" /> > --> > <service >- port="8023/tcp" >+ port="127.0.0.1:8023/tcp/IPv4" > transport="telnet" > protocol="SIP/2.00" > timeout="60" /> > > <service >- port="127.0.0.1:6001/tcp" >+ port="127.0.0.1:6001/tcp/IPv4" > transport="RAW" > protocol="SIP/2.00" > client_timeout="600" >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36948
:
167112
|
167134
|
167147
|
167148
|
167149
|
167150
|
167151
| 167152 |
167153