Corrections diverses
This commit is contained in:
parent
f8a35a9da3
commit
4170890f54
|
@ -4,7 +4,7 @@ edit:add-var curl~ $e:curlie~
|
|||
edit:add-var df~ $e:duf~
|
||||
edit:add-var diff~ $e:colordiff~
|
||||
edit:add-var dig~ [@argv]{ e:dig +noall +answer $@argv }
|
||||
edit:add-var dogall~ [@argv]{ e:dog A AAAA CNAME $@argv }
|
||||
edit:add-var dogall~ [@argv]{ e:dog A AAAA CNAME PTR TXT MX SRV NS SOA $@argv }
|
||||
edit:add-var du~ [@argv]{ e:du -h $@argv }
|
||||
edit:add-var git~ $e:hub~
|
||||
edit:add-var grep~ [@argv]{ e:grep --color=tty -d skip $@argv }
|
||||
|
|
|
@ -26,21 +26,21 @@ edit:add-var ipof~ [@argv]{
|
|||
&txt=''
|
||||
]
|
||||
e:dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml -resolve (idn -a $d) | peach [l]{
|
||||
var l = $l
|
||||
var idx = (+ (str:index $l :) 1)
|
||||
var value = (str:trim-space $l[$idx".."])
|
||||
if (or (str:has-prefix $l 'IPv4 addresses') (str:has-prefix $l 'IPv6 addresses')) {
|
||||
var ll = $l
|
||||
var idx = (+ (str:index $ll :) 1)
|
||||
var value = (str:trim-space $ll[$idx".."])
|
||||
if (or (str:has-prefix $ll 'IPv4 addresses') (str:has-prefix $ll 'IPv6 addresses')) {
|
||||
str:split ', ' $value | peach [e]{
|
||||
var ee = $e
|
||||
if (ip:is-ip $ee) {
|
||||
result[ips][$ee] = $nil
|
||||
}
|
||||
}
|
||||
} elif (str:has-prefix $l 'TXT records') {
|
||||
} elif (str:has-prefix $ll 'TXT records') {
|
||||
result[txt] = $value
|
||||
} elif (str:has-prefix $l 'Resolver') {
|
||||
} elif (str:has-prefix $ll 'Resolver') {
|
||||
result[resolvers] = $value
|
||||
} elif (str:has-prefix $l 'Name servers') {
|
||||
} elif (str:has-prefix $ll 'Name servers') {
|
||||
result[remote] = (not-eq $value 'name does not exist')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue