Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
c04203ef
Commit
c04203ef
authored
Dec 19, 2016
by
daryl herzmann
Committed by
GitHub
Dec 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1103 STUNServer plugin UI fixes (#714)
parent
8e2da200
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
8 deletions
+24
-8
changelog.html
src/plugins/stunserver/changelog.html
+4
-0
plugin.xml
src/plugins/stunserver/plugin.xml
+2
-2
stunserver_i18n_en.properties
...plugins/stunserver/src/i18n/stunserver_i18n_en.properties
+1
-0
STUNService.java
.../src/java/org/jivesoftware/openfire/stun/STUNService.java
+17
-6
delete-16x16.gif
src/plugins/stunserver/src/web/images/delete-16x16.gif
+0
-0
error-16x16.gif
src/plugins/stunserver/src/web/images/error-16x16.gif
+0
-0
success-16x16.gif
src/plugins/stunserver/src/web/images/success-16x16.gif
+0
-0
No files found.
src/plugins/stunserver/changelog.html
View file @
c04203ef
...
@@ -43,6 +43,10 @@
...
@@ -43,6 +43,10 @@
<h1>
<h1>
STUN Server Plugin Changelog
STUN Server Plugin Changelog
</h1>
</h1>
<p><b>
1.2.1
</b>
-- December 19, 2016
</p>
<ul>
<li>
[
<a
href=
'https://issues.igniterealtime.org/browse/OF-1103'
>
OF-1103
</a>
] - UI Improvements.
</li>
</ul>
<p><b>
1.2.0
</b>
-- October 12, 2015
</p>
<p><b>
1.2.0
</b>
-- October 12, 2015
</p>
<ul>
<ul>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-953'
>
OF-953
</a>
] - Updated JSP libraries.
</li>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-953'
>
OF-953
</a>
] - Updated JSP libraries.
</li>
...
...
src/plugins/stunserver/plugin.xml
View file @
c04203ef
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<name>
STUN server plugin
</name>
<name>
STUN server plugin
</name>
<description>
Adds STUN functionality to Openfire
</description>
<description>
Adds STUN functionality to Openfire
</description>
<author>
Ignite Realtime
</author>
<author>
Ignite Realtime
</author>
<version>
1.2.
0
</version>
<version>
1.2.
1
</version>
<date>
1
0/12/2015
</date>
<date>
1
2/19/2016
</date>
<minServerVersion>
4.0.0
</minServerVersion>
<minServerVersion>
4.0.0
</minServerVersion>
<adminconsole>
<adminconsole>
...
...
src/plugins/stunserver/src/i18n/stunserver_i18n_en.properties
View file @
c04203ef
global.add
=
Add
global.add
=
Add
global.delete
=
Delete
global.delete
=
Delete
global.save_settings
=
Save Settings
sidebar.stun
=
STUN Settings
sidebar.stun
=
STUN Settings
sidebar.stun.descr
=
Click to view STUN settings.
sidebar.stun.descr
=
Click to view STUN settings.
...
...
src/plugins/stunserver/src/java/org/jivesoftware/openfire/stun/STUNService.java
View file @
c04203ef
...
@@ -53,7 +53,10 @@ import de.javawi.jstun.test.demo.StunServer;
...
@@ -53,7 +53,10 @@ import de.javawi.jstun.test.demo.StunServer;
public
class
STUNService
implements
Plugin
{
public
class
STUNService
implements
Plugin
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
STUNService
.
class
);
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
STUNService
.
class
);
public
static
final
String
STUN_ADDRESS_PRIMARY
=
"stun.address.primary"
;
public
static
final
String
STUN_ADDRESS_SECONDARY
=
"stun.address.secondary"
;
public
static
final
String
STUN_PORT_PRIMARY
=
"stun.port.primary"
;
public
static
final
String
STUN_PORT_SECONDARY
=
"stun.port.secondary"
;
private
static
final
String
ELEMENT_NAME
=
"stun"
;
private
static
final
String
ELEMENT_NAME
=
"stun"
;
private
static
final
String
NAMESPACE
=
"google:jingleinfo"
;
private
static
final
String
NAMESPACE
=
"google:jingleinfo"
;
private
static
final
String
DEFAULT_EXTERNAL_ADDRESSES
=
private
static
final
String
DEFAULT_EXTERNAL_ADDRESSES
=
...
@@ -77,8 +80,8 @@ public class STUNService implements Plugin {
...
@@ -77,8 +80,8 @@ public class STUNService implements Plugin {
public
void
initializePlugin
(
PluginManager
manager
,
File
pluginDirectory
)
{
public
void
initializePlugin
(
PluginManager
manager
,
File
pluginDirectory
)
{
this
.
enabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.enabled"
,
true
);
this
.
enabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.enabled"
,
true
);
primaryAddress
=
JiveGlobals
.
getProperty
(
"stun.address.primary"
);
primaryAddress
=
JiveGlobals
.
getProperty
(
STUN_ADDRESS_PRIMARY
);
secondaryAddress
=
JiveGlobals
.
getProperty
(
"stun.address.secondary"
);
secondaryAddress
=
JiveGlobals
.
getProperty
(
STUN_ADDRESS_SECONDARY
);
String
addresses
=
JiveGlobals
.
getProperty
(
"stun.external.addresses"
);
String
addresses
=
JiveGlobals
.
getProperty
(
"stun.external.addresses"
);
// If no custom external addresses are defined, use the defaults.
// If no custom external addresses are defined, use the defaults.
...
@@ -87,8 +90,8 @@ public class STUNService implements Plugin {
...
@@ -87,8 +90,8 @@ public class STUNService implements Plugin {
}
}
externalServers
=
getStunServerAddresses
(
addresses
);
externalServers
=
getStunServerAddresses
(
addresses
);
primaryPort
=
JiveGlobals
.
getIntProperty
(
"stun.port.primary"
,
3478
);
primaryPort
=
JiveGlobals
.
getIntProperty
(
STUN_PORT_PRIMARY
,
3478
);
secondaryPort
=
JiveGlobals
.
getIntProperty
(
"stun.port.secondary"
,
3479
);
secondaryPort
=
JiveGlobals
.
getIntProperty
(
STUN_PORT_SECONDARY
,
3479
);
this
.
localEnabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.local.enabled"
,
false
);
this
.
localEnabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.local.enabled"
,
false
);
// If the local server is supposed to be enabled, ensure that primary and secondary
// If the local server is supposed to be enabled, ensure that primary and secondary
...
@@ -117,6 +120,14 @@ public class STUNService implements Plugin {
...
@@ -117,6 +120,14 @@ public class STUNService implements Plugin {
}
}
}
else
if
(
property
.
equals
(
"stun.local.enabled"
))
{
}
else
if
(
property
.
equals
(
"stun.local.enabled"
))
{
localEnabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.local.enabled"
,
false
);
localEnabled
=
JiveGlobals
.
getBooleanProperty
(
"stun.local.enabled"
,
false
);
}
else
if
(
property
.
equals
(
STUN_ADDRESS_PRIMARY
))
{
primaryAddress
=
JiveGlobals
.
getProperty
(
STUN_ADDRESS_PRIMARY
);
}
else
if
(
property
.
equals
(
STUN_ADDRESS_SECONDARY
))
{
secondaryAddress
=
JiveGlobals
.
getProperty
(
STUN_ADDRESS_SECONDARY
);
}
else
if
(
property
.
equals
(
STUN_PORT_PRIMARY
))
{
primaryPort
=
JiveGlobals
.
getIntProperty
(
STUN_PORT_PRIMARY
,
3478
);
}
else
if
(
property
.
equals
(
STUN_PORT_SECONDARY
))
{
secondaryPort
=
JiveGlobals
.
getIntProperty
(
STUN_PORT_SECONDARY
,
3479
);
}
}
}
}
...
@@ -435,4 +446,4 @@ public class STUNService implements Plugin {
...
@@ -435,4 +446,4 @@ public class STUNService implements Plugin {
return
new
IQHandlerInfo
(
ELEMENT_NAME
,
NAMESPACE
);
return
new
IQHandlerInfo
(
ELEMENT_NAME
,
NAMESPACE
);
}
}
}
}
}
}
\ No newline at end of file
src/plugins/stunserver/src/web/images/delete-16x16.gif
0 → 100644
View file @
c04203ef
1016 Bytes
src/plugins/stunserver/src/web/images/error-16x16.gif
0 → 100644
View file @
c04203ef
1.03 KB
src/plugins/stunserver/src/web/images/success-16x16.gif
0 → 100644
View file @
c04203ef
1016 Bytes
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