Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f05a3472
Commit
f05a3472
authored
9 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
More explicity and easy to read code for determining if the zone extension
is required.
parent
a25a8131
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/fido.js
+15
-2
15 additions, 2 deletions
exec/load/fido.js
with
15 additions
and
2 deletions
exec/load/fido.js
+
15
−
2
View file @
f05a3472
...
...
@@ -226,8 +226,21 @@ FIDO.Addr.prototype.flo_outbound = function(default_zone, default_domain)
// backslash() doesn't work on an empty string
var
ret
=
'
_
'
;
if
(
this
.
zone
!==
undefined
&&
((
default_domain
!==
undefined
&&
this
.
domain
!==
default_domain
.
toLowerCase
())
||
this
.
zone
!==
default_zone
))
ret
+=
format
(
"
.%03x
"
,
this
.
zone
);
/*
* We need the zone suffix if:
* 1) This is not in the default zone.
* -OR-
* 2) This is not in the default domain.
*
* If default_* is undefined, assume we are in the default.
* Of course, if we don't have a zone, we surely can't put it in.
*/
if
(
this
.
zone
!==
undefined
)
{
if
(
default_zone
!==
undefined
&&
this
.
zone
!==
default_zone
)
||
(
this
.
domain
!==
undefined
&&
default_domain
!==
undefined
&&
this
.
domain
!==
default_domain
.
toLowerCase
())
ret
+=
format
(
"
.%03x
"
,
this
.
zone
);
}
ret
=
backslash
(
ret
);
if
(
this
.
point
!==
undefined
)
ret
+=
backslash
(
format
(
"
%08x.pnt
"
,
this
.
point
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment