Skip to content

Commit cb93f08

Browse files
authored
Fix typos (#255)
1 parent e6563ee commit cb93f08

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
- [Discord](#discord)
6161
- [Pushover](#pushover)
6262
- [Webhook](#webhook)
63-
- [Webhook with HTTP GET reqeust](#webhook-with-http-get-reqeust)
63+
- [Webhook with HTTP GET request](#webhook-with-http-get-request)
6464
- [Webhook with HTTP POST request](#webhook-with-http-post-request)
6565
- [Miscellaneous topics](#miscellaneous-topics)
6666
- [IPv6 support](#ipv6-support)
@@ -743,7 +743,7 @@ More info: [English](https://faq.infomaniak.com/2376)
743743
For Hetzner, you have to create an access token. This can be done in the DNS-Console.
744744
(Person Icon in the top left corner --> API Tokens)
745745
Notice: If a domain has multiple Records **only the first** Record will be updated.
746-
Make shure there is just one record.
746+
Make sure there is just one record.
747747

748748
<details>
749749
<summary>Example</summary>
@@ -773,7 +773,7 @@ Make shure there is just one record.
773773
#### OVH
774774

775775
For OVH, you need to provide a Consumerkey, an Appsecret, an Appkey and configure all the domains & subdomains.
776-
The neeeded values can be obtaines by visting [this site](https://www.ovh.com/auth/api/createToken)
776+
The needed values can be obtained by visiting [this site](https://www.ovh.com/auth/api/createToken)
777777
Rights should be '\*' on GET, POST and PUT
778778
More info: [help.ovhcloud.com](https://help.ovhcloud.com/csm/en-gb-api-getting-started-ovhcloud-api?id=kb_article_view&sysparm_article=KB0042784)
779779

@@ -978,7 +978,7 @@ Available variables:
978978
> - `IP`: The new IP address.
979979
> - `IPType`: The type of the IP: `IPV4` or `IPV6`.
980980
981-
#### Webhook with HTTP GET reqeust
981+
#### Webhook with HTTP GET request
982982

983983
```json
984984
"webhook": {

internal/provider/ovh/ovh_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (provider *DNSProvider) UpdateIP(domainName string, subdomainName string, i
4747
return err
4848
}
4949
if len(IDs) < 1 {
50-
log.Error("No machting records")
51-
return fmt.Errorf("no macthing records")
50+
log.Error("No matching records")
51+
return fmt.Errorf("no matching records")
5252
}
5353
outrec := Record{}
5454

internal/utils/settings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ func TestCheckSettings(t *testing.T) {
2828
if err := CheckSettings(settingHE); err != nil {
2929
t.Log("HE setting without password, passed")
3030
} else {
31-
t.Error("HE setting without password, should be faild")
31+
t.Error("HE setting without password, should be failed")
3232
}
3333
}

pkg/lib/ip_helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (helper *IPHelper) getIPFromMikrotik() string {
151151
defer response.Body.Close()
152152

153153
if response.StatusCode != http.StatusOK {
154-
log.Error("requst code failed: ", response.StatusCode)
154+
log.Error("request code failed: ", response.StatusCode)
155155
return ""
156156
}
157157
body, err := io.ReadAll(response.Body)
@@ -215,7 +215,7 @@ func (helper *IPHelper) getIPFromInterface() (string, error) {
215215
}
216216

217217
if ip.String() != "" {
218-
log.Debugf("Get ip success from network intereface by: %s, IP: %s", helper.configuration.IPInterface, ip.String())
218+
log.Debugf("Get ip success from network interface by: %s, IP: %s", helper.configuration.IPInterface, ip.String())
219219
return ip.String(), nil
220220
}
221221
}

pkg/resolver/resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewFromResolvConf(path string) (*DNSResolver, error) {
4848
return &DNSResolver{servers, len(servers) * 2, rand.New(rand.NewSource(time.Now().UnixNano()))}, err
4949
}
5050

51-
// LookupHost returns IP addresses of provied host.
51+
// LookupHost returns IP addresses of provided host.
5252
// In case of timeout retries query RetryTimes times.
5353
func (r *DNSResolver) LookupHost(host string, dnsType uint16) ([]net.IP, error) {
5454
return r.lookupHost(host, dnsType, r.RetryTimes)

web/app/network/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Network() {
4444
IPMode={settings.ip_mode}
4545
IPUrls={settings.ip_urls}
4646
IPV6Urls={settings.ipv6_urls}
47-
onIpModeChagne={(data) => {
47+
onIpModeChange={(data) => {
4848
setSettings({
4949
...settings,
5050
ip_mode: data.IPMode,

web/components/domain-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const DomainCard = (props: DomainControlProps) => {
5454
<dialog id="modal_remove" className="modal" ref={modalRef}>
5555
<div className="modal-box">
5656
<h3 className="font-bold text-lg">Remove this domain?</h3>
57-
<p className="py-4">You will permanently remove this domian from the configuration.</p>
57+
<p className="py-4">You will permanently remove this domain from the configuration.</p>
5858
<div className="modal-action">
5959
<form method="dialog">
6060
<button className="btn mr-2">Now now</button>

web/components/ip-interface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const IPInterface = (props: IPInterfaceProps) => {
99
return (
1010
<div className="stats shadow bg-primary-content stats-vertical lg:stats-horizontal">
1111
<div className="stat gap-2">
12-
<div className="stat-title">IP Inerface</div>
12+
<div className="stat-title">IP Interface</div>
1313
<div className="flex flex-col gap-3">
1414
<div className="flex flex-row items-center justify-start gap-2">
1515
<span className="label-text text-slate-500 ">Set the network interface</span>

web/components/ip-mode.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface IpModeProps {
55
IPMode: string;
66
IPUrls?: string[];
77
IPV6Urls?: string[];
8-
onIpModeChagne?: (data: IpModeProps) => void;
8+
onIpModeChange?: (data: IpModeProps) => void;
99
}
1010

1111
export const IpMode = (props: IpModeProps) => {
@@ -28,8 +28,8 @@ export const IpMode = (props: IpModeProps) => {
2828
checked={isIPV6}
2929
onClick={() => {
3030
isIPV6 = !isIPV6;
31-
if (props.onIpModeChagne) {
32-
props.onIpModeChagne({
31+
if (props.onIpModeChange) {
32+
props.onIpModeChange({
3333
IPMode: isIPV6 ? 'IPV6' : 'IPV4',
3434
IPUrls: props.IPUrls,
3535
IPV6Urls: props.IPV6Urls,
@@ -50,8 +50,8 @@ export const IpMode = (props: IpModeProps) => {
5050
value={isIPV6 && props.IPV6Urls ? props.IPV6Urls.join('\n') :
5151
!isIPV6 && props.IPUrls ? props.IPUrls.join('\n') : ''}
5252
onChange={(e) => {
53-
if (props.onIpModeChagne) {
54-
props.onIpModeChagne({
53+
if (props.onIpModeChange) {
54+
props.onIpModeChange({
5555
IPMode: isIPV6 ? 'IPV6' : 'IPV4',
5656
IPUrls: isIPV6 ? props.IPUrls : e.target.value.split('\n'),
5757
IPV6Urls: isIPV6 ? e.target.value.split('\n') : props.IPV6Urls

0 commit comments

Comments
 (0)